mirror of https://github.com/tc39/test262.git
[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:
parent
f10582ee66
commit
92b6974dfd
|
@ -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