From 4fc1bbeb6082c1848d0d604969ca1637d3138b37 Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Wed, 24 Jun 2015 23:15:27 +0100 Subject: [PATCH] acorn resync --- src/acorn/src/tokentype.js | 2 +- test/acorn/tests-harmony.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/acorn/src/tokentype.js b/src/acorn/src/tokentype.js index 05d1d53186..1ae2d0a297 100755 --- a/src/acorn/src/tokentype.js +++ b/src/acorn/src/tokentype.js @@ -112,7 +112,7 @@ kw("case", beforeExpr) kw("catch") kw("continue") kw("debugger") -kw("default") +kw("default", beforeExpr) kw("do", {isLoop: true}) kw("else", beforeExpr) kw("finally") diff --git a/test/acorn/tests-harmony.js b/test/acorn/tests-harmony.js index 8d93337f4d..16a40c6d54 100755 --- a/test/acorn/tests-harmony.js +++ b/test/acorn/tests-harmony.js @@ -15328,3 +15328,5 @@ test("({ ['__proto__']: 1, __proto__: 2 })", {}, {ecmaVersion: 6}); test("({ __proto__() { return 1 }, __proto__: 2 })", {}, {ecmaVersion: 6}); test("({ get __proto__() { return 1 }, __proto__: 2 })", {}, {ecmaVersion: 6}); test("({ __proto__, __proto__: 2 })", {}, {ecmaVersion: 6}); + +test("export default /foo/", {}, {ecmaVersion: 6, sourceType: "module"});