Merge pull request #1715 from test262-automation/javascriptcore-test262-automation-export-5594c916b

Import test changes from JavaScriptCore
This commit is contained in:
Leo Balter 2018-09-07 14:24:14 -04:00 committed by GitHub
commit 667ff88467
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 4 deletions

View File

@ -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",

View File

@ -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);

View File

@ -1,5 +1,4 @@
//@ skip if $architecture == "x86"
//@ runDefault
//@ runWebAssembly
// This passes if it does not crash.
new WebAssembly.CompileError({
valueOf() {