mirror of https://github.com/tc39/test262.git
Merge pull request #1715 from test262-automation/javascriptcore-test262-automation-export-5594c916b
Import test changes from JavaScriptCore
This commit is contained in:
commit
667ff88467
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
//@ skip if $architecture == "x86"
|
||||
//@ runDefault
|
||||
//@ runWebAssembly
|
||||
// This passes if it does not crash.
|
||||
new WebAssembly.CompileError({
|
||||
valueOf() {
|
Loading…
Reference in New Issue