diff --git a/implementation-contributed/curation_logs/javascriptcore.json b/implementation-contributed/curation_logs/javascriptcore.json index 1fa6ef461cce48943aa37eaf376adeece6232296..8bf7f05d11355fcfe69878305b412c620a1dcafb 100644 --- a/implementation-contributed/curation_logs/javascriptcore.json +++ b/implementation-contributed/curation_logs/javascriptcore.json @@ -1,6 +1,6 @@ { - "sourceRevisionAtLastExport": "ce279990f8", - "targetRevisionAtLastExport": "170f4cbbb", + "sourceRevisionAtLastExport": "3ced8564a6", + "targetRevisionAtLastExport": "f8c62a49f", "curatedFiles": { "/stress/Number-isNaN-basics.js": "DELETED_IN_TARGET", "/stress/Object_static_methods_Object.getOwnPropertyDescriptors-proxy.js": "DELETED_IN_TARGET", diff --git a/implementation-contributed/javascriptcore/stress/regress-189185.js b/implementation-contributed/javascriptcore/stress/regress-189185.js index d67f9d41b227e37a106c628e76243829ac6aa122..c016efd2686858f519d3730f6f05e0d2fde6da59 100644 --- a/implementation-contributed/javascriptcore/stress/regress-189185.js +++ b/implementation-contributed/javascriptcore/stress/regress-189185.js @@ -1,4 +1,5 @@ //@ runDefault +//@ skip if $architecture == "x86" // This passes if it does not crash. new WebAssembly.CompileError({ valueOf() { diff --git a/implementation-contributed/javascriptcore/stress/regress-189292.js b/implementation-contributed/javascriptcore/stress/regress-189292.js new file mode 100644 index 0000000000000000000000000000000000000000..4314f9abe382bc3ed5ca41554564b393c6229c5d --- /dev/null +++ b/implementation-contributed/javascriptcore/stress/regress-189292.js @@ -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'.");