shift-parser
Advanced tools
Comparing version 5.0.0 to 5.0.1
@@ -367,11 +367,3 @@ "use strict"; | ||
s = s.functionDeclarationNamesAreLexical(); | ||
switch (node.body.type) { | ||
case "FunctionDeclaration": | ||
case "ClassDeclaration": | ||
if (node.body.name.name !== "*default*") { | ||
s = s.exportDeclaredNames(); | ||
} | ||
break; | ||
} | ||
s = s.exportName("*default*", node); | ||
s = s.exportName("default", node); | ||
return s; | ||
@@ -696,3 +688,3 @@ } | ||
s.exportedBindings.forEachEntry(function (nodes, bindingName) { | ||
if (bindingName !== "*default*" && !s.lexicallyDeclaredNames.has(bindingName) && !s.varDeclaredNames.has(bindingName)) { | ||
if (!s.lexicallyDeclaredNames.has(bindingName) && !s.varDeclaredNames.has(bindingName)) { | ||
nodes.forEach(function (undeclaredNode) { | ||
@@ -699,0 +691,0 @@ s = s.addError(new _earlyErrorState.EarlyError(undeclaredNode, "Exported binding " + JSON.stringify(bindingName) + " is not declared")); |
{ | ||
"name": "shift-parser", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"description": "ECMAScript parser that produces a Shift format AST", | ||
@@ -5,0 +5,0 @@ "author": "Shape Security Labs", |
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
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
278752
5641