Check list of future reserved words for primary expression identifiers.

This commit is contained in:
Tor Andersson
2014-02-06 16:07:37 +01:00
parent f8871d072c
commit 934c7a37de
+1
View File
@@ -345,6 +345,7 @@ static js_Ast *primary(js_State *J)
js_Ast *a;
if (J->lookahead == TK_IDENTIFIER) {
checkfutureword(J, J->text);
a = jsP_newstrnode(J, AST_IDENTIFIER, J->text);
next(J);
return a;