From 292bceb605dd90fff75a7b3ec79e95cc353c1019 Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Tue, 29 Mar 2016 18:24:16 -0700 Subject: [PATCH] Don't override sourceType Allow script sourceTypes --- index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/index.js b/index.js index c9e7bc4d..b42c3408 100644 --- a/index.js +++ b/index.js @@ -76,7 +76,6 @@ function monkeypatch() { var analyze = escope.analyze; escope.analyze = function (ast, opts) { opts.ecmaVersion = 6; - opts.sourceType = "module"; var results = analyze.call(this, ast, opts); return results;