diff --git a/implementation-contributed/curation_logs/javascriptcore.json b/implementation-contributed/curation_logs/javascriptcore.json index 8c13dab716..65375ace22 100644 --- a/implementation-contributed/curation_logs/javascriptcore.json +++ b/implementation-contributed/curation_logs/javascriptcore.json @@ -1,6 +1,6 @@ { - "sourceRevisionAtLastExport": "a2f7b0c562", - "targetRevisionAtLastExport": "5594c916b", + "sourceRevisionAtLastExport": "873fa026de", + "targetRevisionAtLastExport": "92b6974df", "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/math-pow-nan-to-zero-spec-type.js b/implementation-contributed/javascriptcore/stress/math-pow-nan-to-zero-spec-type.js new file mode 100644 index 0000000000..24553a5342 --- /dev/null +++ b/implementation-contributed/javascriptcore/stress/math-pow-nan-to-zero-spec-type.js @@ -0,0 +1,21 @@ +// Verify that we have the correct speculation checks for Math.pow(NaN, 0). + +function func(x) { + return fiatInt52(Math.pow(NaN, (x > 1))); +}; + +noInline(func); + +function test(f) +{ + for (let i = 0; i < 10000; ++i) { + if (f(0) != 1) + throw "Wrong expected value"; + + if (f(1) != 1) + throw "Wrong expected value"; + } +} + +test(func); + diff --git a/implementation-contributed/javascriptcore/stress/regress-189185.js b/implementation-contributed/javascriptcore/wasm/regress/regress-189185.js similarity index 70% rename from implementation-contributed/javascriptcore/stress/regress-189185.js rename to implementation-contributed/javascriptcore/wasm/regress/regress-189185.js index 14b901e7ca..d2588ad31f 100644 --- a/implementation-contributed/javascriptcore/stress/regress-189185.js +++ b/implementation-contributed/javascriptcore/wasm/regress/regress-189185.js @@ -1,5 +1,4 @@ -//@ skip if $architecture == "x86" -//@ runDefault +//@ runWebAssembly // This passes if it does not crash. new WebAssembly.CompileError({ valueOf() {