esprima-fb
Advanced tools
Comparing version 4001.3001.0-dev-harmony-fb to 5001.1.0-dev-harmony-fb
@@ -10,3 +10,3 @@ { | ||
}, | ||
"version": "4001.3001.0000-dev-harmony-fb", | ||
"version": "5001.0001.0000-dev-harmony-fb", | ||
"files": [ | ||
@@ -13,0 +13,0 @@ "bin", |
@@ -96,2 +96,17 @@ /* | ||
function hasAttachedComment(syntax) { | ||
var key; | ||
for (key in syntax) { | ||
if (key === 'leadingComments' || key === 'trailingComments') { | ||
return true; | ||
} | ||
if (syntax[key] && typeof syntax[key] === 'object') { | ||
if (hasAttachedComment(syntax[key])) { | ||
return true; | ||
} | ||
} | ||
} | ||
return false; | ||
} | ||
function testParse(esprima, code, syntax) { | ||
@@ -114,2 +129,6 @@ 'use strict'; | ||
if (options.comment) { | ||
options.attachComment = hasAttachedComment(syntax); | ||
} | ||
if (options.loc) { | ||
@@ -116,0 +135,0 @@ options.source = syntax.loc.source; |
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
1030953
28628