Skip to content
Snippets Groups Projects
Commit f8c62a49 authored by test262-automation's avatar test262-automation
Browse files

[javascriptcore-test262-automation] Changes from...

[javascriptcore-test262-automation] Changes from https://github.com/webkit/webkit.git at sha ce279990f8 on Wed Sep 05 2018 18:18:55 GMT+0000 (Coordinated Universal Time)
parent ef77548b
No related branches found
No related tags found
No related merge requests found
//@ runDefault
//@ skip if $architecture == "x86"
// This passes if it does not crash.
new WebAssembly.CompileError({
valueOf() {
......
//@ 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.
Please register or to comment