From 934c7a37de78398db3def53344134826a4ea4468 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 6 Feb 2014 16:07:37 +0100 Subject: [PATCH] Check list of future reserved words for primary expression identifiers. --- jsparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/jsparse.c b/jsparse.c index d7e6991..1557497 100644 --- a/jsparse.c +++ b/jsparse.c @@ -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;