mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
Merge pull request #1710 from test262-automation/javascriptcore-test262-automation-export-170f4cbbb
Import test changes from JavaScriptCore
This commit is contained in:
commit
86b5efea29
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"sourceRevisionAtLastExport": "ce279990f8",
|
"sourceRevisionAtLastExport": "3ced8564a6",
|
||||||
"targetRevisionAtLastExport": "170f4cbbb",
|
"targetRevisionAtLastExport": "f8c62a49f",
|
||||||
"curatedFiles": {
|
"curatedFiles": {
|
||||||
"/stress/Number-isNaN-basics.js": "DELETED_IN_TARGET",
|
"/stress/Number-isNaN-basics.js": "DELETED_IN_TARGET",
|
||||||
"/stress/Object_static_methods_Object.getOwnPropertyDescriptors-proxy.js": "DELETED_IN_TARGET",
|
"/stress/Object_static_methods_Object.getOwnPropertyDescriptors-proxy.js": "DELETED_IN_TARGET",
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
//@ runDefault
|
//@ runDefault
|
||||||
|
//@ skip if $architecture == "x86"
|
||||||
// This passes if it does not crash.
|
// This passes if it does not crash.
|
||||||
new WebAssembly.CompileError({
|
new WebAssembly.CompileError({
|
||||||
valueOf() {
|
valueOf() {
|
||||||
|
@ -0,0 +1,18 @@
|
|||||||
|
//@ 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'.");
|
Loading…
x
Reference in New Issue
Block a user