jquery / esprima

ECMAScript parsing infrastructure for multipurpose analysis
http://esprima.org
BSD 2-Clause "Simplified" License
7.06k stars 786 forks source link

Early error for exported names not part of declared names #1579

Open ariya opened 8 years ago

ariya commented 8 years ago

The specification says that:

It is a Syntax Error if any element of the ExportedBindings of ModuleItemList does not also occur in either the VarDeclaredNames of ModuleItemList, or the LexicallyDeclaredNames of ModuleItemList.

(More to be written)

ghost commented 7 years ago

@ariya For early errors you can use this one as a reference: https://github.com/shapesecurity/shift-parser-js/blob/es2016/test/early-errors.js