Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

esprima-fb

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esprima-fb - npm Package Compare versions

Comparing version 6001.1001.0-dev-harmony-fb to 7001.1.0-dev-harmony-fb

4

package.json

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc