[javascriptcore-test262-automation] Changes from https://github.com/webkit/webkit.git at sha a2f7b0c562 on Fri Sep 07 2018 18:19:35 GMT+0000 (Coordinated Universal Time)

This commit is contained in:
test262-automation 2018-09-07 18:22:08 +00:00
parent f10582ee66
commit 92b6974dfd
2 changed files with 22 additions and 2 deletions

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" //@ runWebAssembly
//@ runDefault
// This passes if it does not crash. // This passes if it does not crash.
new WebAssembly.CompileError({ new WebAssembly.CompileError({
valueOf() { valueOf() {