From 16063dd8b357dca5ded7ec772ca53a10dbeee9ad Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Sun, 2 Nov 2014 14:18:40 +1100 Subject: [PATCH] add strictMode option --- acorn.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acorn.js b/acorn.js index d17a29c418..f5e9d835e3 100644 --- a/acorn.js +++ b/acorn.js @@ -164,6 +164,9 @@ comments.push(comment); }; } + if (opts.strictMode) { + strict = true; + } isKeyword = options.ecmaVersion >= 6 ? isEcma6Keyword : isEcma5AndLessKeyword; }