summaryrefslogtreecommitdiff
path: root/src/validator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/validator.cc')
-rw-r--r--src/validator.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/validator.cc b/src/validator.cc
index d8ac6666..5978275d 100644
--- a/src/validator.cc
+++ b/src/validator.cc
@@ -228,7 +228,10 @@ class Validator : public ExprVisitor::Delegate {
Validator::Validator(Errors* errors,
const Script* script,
const ValidateOptions& options)
- : options_(options), errors_(errors), script_(script) {
+ : options_(options),
+ errors_(errors),
+ script_(script),
+ typechecker_(options.features) {
typechecker_.set_error_callback(
[this](const char* msg) { OnTypecheckerError(msg); });
}