Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade: acorn 5.4.0 #367

Merged
merged 1 commit into from Feb 3, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -149,6 +149,8 @@ There are two ECMAScript 2017 syntax changes: `async` functions, and trailing co
Because ECMAScript 2018 is still under development, we are implementing features as they are finalized. Currently, Espree supports:

* Invalid escape sequences in tagged template literals
* Rest/spread properties
* Async Iteration

### How do you determine which experimental features to support?

Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -18,7 +18,7 @@
},
"license": "BSD-2-Clause",
"dependencies": {
"acorn": "^5.3.0",
"acorn": "^5.4.0",
"acorn-jsx": "^3.0.0"
},
"devDependencies": {
Expand Down
@@ -0,0 +1,6 @@
module.exports = {
"index": 28,
"lineNumber": 1,
"column": 29,
"message": "Can not use keyword 'await' outside an async function"
};
@@ -0,0 +1,6 @@
module.exports = {
"index": 34,
"lineNumber": 1,
"column": 35,
"message": "Unexpected token a"
};
@@ -0,0 +1 @@
async function* f() { () => await a; }
@@ -0,0 +1,6 @@
module.exports = {
"index": 30,
"lineNumber": 1,
"column": 31,
"message": "Can not use keyword 'await' outside an async function"
};
@@ -0,0 +1,6 @@
module.exports = {
"index": 36,
"lineNumber": 1,
"column": 37,
"message": "Unexpected token a"
};
@@ -0,0 +1 @@
f = async function*() { () => await a; }
@@ -0,0 +1,6 @@
module.exports = {
"index": 27,
"lineNumber": 1,
"column": 28,
"message": "Can not use keyword 'await' outside an async function"
};
@@ -0,0 +1,6 @@
module.exports = {
"index": 33,
"lineNumber": 1,
"column": 34,
"message": "Unexpected token a"
};
@@ -0,0 +1 @@
obj = { async* f() { () => await a; } }
@@ -0,0 +1,6 @@
module.exports = {
"index": 29,
"lineNumber": 1,
"column": 30,
"message": "Can not use keyword 'await' outside an async function"
};
@@ -0,0 +1,6 @@
module.exports = {
"index": 35,
"lineNumber": 1,
"column": 36,
"message": "Unexpected token a"
};
@@ -0,0 +1 @@
class A { async* f() { () => await a; } }
@@ -0,0 +1,6 @@
module.exports = {
"index": 14,
"lineNumber": 2,
"column": 1,
"message": "Unexpected token *"
};
@@ -0,0 +1,2 @@
obj = { async
* f() {} }
@@ -0,0 +1,6 @@
module.exports = {
"index": 16,
"lineNumber": 2,
"column": 1,
"message": "Unexpected token *"
};
@@ -0,0 +1,2 @@
class A { async
* f() {} }
@@ -0,0 +1,6 @@
module.exports = {
"index": 15,
"lineNumber": 1,
"column": 16,
"message": "Unexpected token f"
};
@@ -0,0 +1 @@
obj = { *async f() {}
@@ -0,0 +1,6 @@
module.exports = {
"index": 17,
"lineNumber": 1,
"column": 18,
"message": "Unexpected token f"
};
@@ -0,0 +1 @@
class A { *async f() {} }
@@ -0,0 +1,6 @@
module.exports = {
"index": 14,
"lineNumber": 1,
"column": 15,
"message": "Unexpected token *"
};
@@ -0,0 +1 @@
obj = { *async* f() {}
@@ -0,0 +1,6 @@
module.exports = {
"index": 16,
"lineNumber": 1,
"column": 17,
"message": "Unexpected token *"
};
@@ -0,0 +1 @@
class A { *async* f() {} }
@@ -0,0 +1,6 @@
module.exports = {
"index": 28,
"lineNumber": 1,
"column": 29,
"message": "The keyword 'yield' is reserved"
};
@@ -0,0 +1,6 @@
module.exports = {
"index": 34,
"lineNumber": 1,
"column": 35,
"message": "Unexpected token a"
};
@@ -0,0 +1 @@
async function* f() { () => yield a; }
@@ -0,0 +1,6 @@
module.exports = {
"index": 30,
"lineNumber": 1,
"column": 31,
"message": "The keyword 'yield' is reserved"
};
@@ -0,0 +1,6 @@
module.exports = {
"index": 36,
"lineNumber": 1,
"column": 37,
"message": "Unexpected token a"
};
@@ -0,0 +1 @@
f = async function*() { () => yield a; }
@@ -0,0 +1,6 @@
module.exports = {
"index": 27,
"lineNumber": 1,
"column": 28,
"message": "The keyword 'yield' is reserved"
};
@@ -0,0 +1,6 @@
module.exports = {
"index": 33,
"lineNumber": 1,
"column": 34,
"message": "Unexpected token a"
};
@@ -0,0 +1 @@
obj = { async* f() { () => yield a; } }
@@ -0,0 +1,6 @@
module.exports = {
"index": 29,
"lineNumber": 1,
"column": 30,
"message": "The keyword 'yield' is reserved"
};
@@ -0,0 +1,6 @@
module.exports = {
"index": 35,
"lineNumber": 1,
"column": 36,
"message": "Unexpected token a"
};
@@ -0,0 +1 @@
class A { async* f() { () => yield a; } }