add strictMode option

This commit is contained in:
Sebastian McKenzie 2014-11-02 14:18:40 +11:00
parent 21900ae2b0
commit 16063dd8b3

View File

@ -164,6 +164,9 @@
comments.push(comment);
};
}
if (opts.strictMode) {
strict = true;
}
isKeyword = options.ecmaVersion >= 6 ? isEcma6Keyword : isEcma5AndLessKeyword;
}