acorn-es7-plugin
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -55,2 +55,11 @@ var NotAsync = {} ; | ||
parser.extend("shouldParseExportStatement",function(base){ | ||
return function(){ | ||
if (this.type.label==='name' && this.value==='async' && asyncFunction.test(this.input.substr(this.start))) { | ||
return true ; | ||
} | ||
return base.apply(this,arguments) ; | ||
} | ||
}) ; | ||
parser.extend("parseStatement",function(base){ | ||
@@ -57,0 +66,0 @@ return function (declaration, topLevel) { |
{ | ||
"name": "acorn-es7-plugin", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "A plugin for the Acorn parser that understands the ES7 keywords async and await", | ||
@@ -5,0 +5,0 @@ "main": "acorn-es7-plugin.js", |
@@ -106,3 +106,6 @@ [![NPM](https://nodei.co/npm/acorn-es7-plugin.png?downloads=true&downloadRank=true)](https://nodei.co/npm/acorn-es7-plugin/) | ||
========= | ||
03-May-16: v1.0.13 | ||
- Correctly parse the statement `export async function name(){...}` as _async function name(){...}_ is a valid named declaration. | ||
26-Feb-16: v1.0.12 | ||
@@ -109,0 +112,0 @@ |
23049
557
121