From 3f344f0aad507c76934317a76b00b8e476792cc4 Mon Sep 17 00:00:00 2001 From: Leo Balter Date: Wed, 5 Sep 2018 18:36:35 -0400 Subject: [PATCH] Remove regression test from jsc, covered by new tests --- .../javascriptcore/stress/regress-189292.js | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 implementation-contributed/javascriptcore/stress/regress-189292.js diff --git a/implementation-contributed/javascriptcore/stress/regress-189292.js b/implementation-contributed/javascriptcore/stress/regress-189292.js deleted file mode 100644 index 4314f9abe3..0000000000 --- a/implementation-contributed/javascriptcore/stress/regress-189292.js +++ /dev/null @@ -1,18 +0,0 @@ -//@ runDefault - -function assert(a, b) { - if (a != b) - throw "FAIL"; -} - -function test(script) { - try { - eval(script); - } catch (e) { - return e; - } -} - -assert(test("class C1 { async constructor() { } }"), "SyntaxError: Cannot declare an async method named 'constructor'."); -assert(test("class C1 { *constructor() { } }"), "SyntaxError: Cannot declare a generator function named 'constructor'."); -assert(test("class C1 { async *constructor() { } }"), "SyntaxError: Cannot declare an async generator method named 'constructor'.");