esprima-fb
Advanced tools
Comparing version 6001.1001.0-dev-harmony-fb to 7001.1.0-dev-harmony-fb
@@ -10,3 +10,3 @@ { | ||
}, | ||
"version": "6001.1001.0000-dev-harmony-fb", | ||
"version": "7001.0001.0000-dev-harmony-fb", | ||
"files": [ | ||
@@ -58,3 +58,3 @@ "bin", | ||
"analyze-coverage": "node node_modules/istanbul/lib/cli.js cover test/runner.js", | ||
"check-coverage": "node node_modules/istanbul/lib/cli.js check-coverage --statement -8 --branch -28 --function 99.69", | ||
"check-coverage": "node node_modules/istanbul/lib/cli.js check-coverage --statement -11 --branch -28 --function 99.69", | ||
"complexity": "npm run-script analyze-complexity && npm run-script check-complexity", | ||
@@ -61,0 +61,0 @@ "analyze-complexity": "node tools/list-complexity.js", |
@@ -99,2 +99,5 @@ /* | ||
return undefined; | ||
} else if (key === 'regex' && typeof value === "object") { | ||
// Ignore Esprima-specific 'regex' property. | ||
return undefined; | ||
} | ||
@@ -101,0 +104,0 @@ return value; |
@@ -36,5 +36,6 @@ /* | ||
// Special handling for regular expression literal since we need to | ||
// convert it to a string literal, otherwise it will be decoded | ||
// as object "{}" and the regular expression would be lost. | ||
// Special handling for regular expression literals: remove their `value` | ||
// property since it may be `null` if it represents a regular expression | ||
// that is not supported in the current environment. The `regex` property | ||
// will be compared instead. | ||
function adjustRegexLiteral(key, value) { | ||
@@ -137,3 +138,3 @@ 'use strict'; | ||
expected = JSON.stringify(syntax, null, 4); | ||
expected = JSON.stringify(syntax, adjustRegexLiteral, 4); | ||
try { | ||
@@ -256,3 +257,3 @@ tree = esprima.parse(code, options); | ||
// If handleInvalidRegexFlag is true, an invalid flag in a regular expression | ||
// will throw an exception. In some old version V8, this is not the case | ||
// will throw an exception. In some old version of V8, this is not the case | ||
// and hence handleInvalidRegexFlag is false. | ||
@@ -459,2 +460,3 @@ handleInvalidRegexFlag = false; | ||
vm.runInThisContext(fs.readFileSync(__dirname + '/fbtest.js', 'utf-8')); | ||
vm.runInThisContext(fs.readFileSync(__dirname + '/harmonymodulestest.js', 'utf-8')); | ||
@@ -461,0 +463,0 @@ Object.keys(testFixture).forEach(function (category) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
1051949
29240