Remove regression test from jsc, covered by new tests

This commit is contained in:
Leo Balter 2018-09-05 18:36:35 -04:00 committed by Rick Waldron
parent a9837df144
commit 3f344f0aad
1 changed files with 0 additions and 18 deletions

View File

@ -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'.");