Don't parse package.js in strict mode

This commit is contained in:
Slava Kim
2015-07-24 15:20:57 -07:00
parent 4e7b24dcb3
commit ed9310f55b

View File

@@ -990,7 +990,7 @@ files.runJavaScript = function (code, options) {
// which at least has a nice API for reporting errors.
var parse = require('meteor-babel').parse;
try {
parse(wrapped);
parse(wrapped, { strictMode: false });
} catch (parseError) {
if (typeof parseError.loc !== "object") {
throw parseError;