ref: 934c7a37de78398db3def53344134826a4ea4468
parent: f8871d072c5ea287958300f0420fb8156ef16cbf
author: Tor Andersson <tor@ccxvii.net>
date: Thu Feb 6 11:07:37 EST 2014
Check list of future reserved words for primary expression identifiers.
--- a/jsparse.c
+++ b/jsparse.c
@@ -345,6 +345,7 @@
js_Ast *a;
if (J->lookahead == TK_IDENTIFIER) {
+ checkfutureword(J, J->text);
a = jsP_newstrnode(J, AST_IDENTIFIER, J->text);
next(J);
return a;