From 66a908aaa7128ea4c3e964c8aeee7a70ed9ef304 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Tue, 14 Apr 2015 08:18:06 -0700 Subject: [PATCH] Mark function token as able to start an expression --- src/acorn/src/tokentype.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/acorn/src/tokentype.js b/src/acorn/src/tokentype.js index aa0ecdabe2..609e508583 100755 --- a/src/acorn/src/tokentype.js +++ b/src/acorn/src/tokentype.js @@ -116,7 +116,7 @@ kw("do", {isLoop: true}) kw("else", beforeExpr) kw("finally") kw("for", {isLoop: true}) -kw("function") +kw("function", startsExpr) kw("if") kw("return", beforeExpr) kw("switch")