acorn-es7-plugin
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -151,2 +151,8 @@ var NotAsync = {} ; | ||
key = base.apply(this,arguments) ; | ||
if (key.type==='Identifier') { | ||
if (key.name==='constructor') | ||
this.raise(key.start,"'constructor()' cannot be be async") ; | ||
else if (key.name==='set') | ||
this.raise(key.start,"'set <member>(value)' cannot be be async") ; | ||
} | ||
} | ||
@@ -153,0 +159,0 @@ return key; |
{ | ||
"name": "acorn-es7-plugin", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A plugin for the Acorn parser that understands the ES7 keywords async and await", | ||
@@ -5,0 +5,0 @@ "main": "acorn-es7-plugin.js", |
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
7775
157