google-code-export / esprima

Automatically exported from code.google.com/p/esprima
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

Fix parsing of empty import/export specifier lists #615

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
(using https://code.google.com/p/esprima/issues/detail?id=614)
1. node tools/generate-test-fixture.js --module 'import {} from "A";'
2. node tools/generate-test-fixture.js --module 'export {};'

What is the expected output?
AST with empty specifiers array

What do you see instead?
Parse error

(pull request coming in a second)

Original issue reported on code.google.com by LBLJef...@gmail.com on 5 Dec 2014 at 6:08

GoogleCodeExporter commented 9 years ago
Pull request: https://github.com/ariya/esprima/pull/296

Original comment by LBLJef...@gmail.com on 5 Dec 2014 at 6:13

GoogleCodeExporter commented 9 years ago
Fix parsing of `import {} from "A";` and `export {};`
https://github.com/ariya/esprima/commit/e78b4bb784

Original comment by ariya.hi...@gmail.com on 10 Jan 2015 at 9:04