Skip to content
Snippets Groups Projects
Commit 3f344f0a authored by Leo Balter's avatar Leo Balter Committed by Rick Waldron
Browse files

Remove regression test from jsc, covered by new tests

parent a9837df1
No related branches found
No related tags found
No related merge requests found
//@ 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'.");
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment