mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Don't parse package.js in strict mode
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user