mirror of
https://github.com/tc39/test262.git
synced 2025-07-26 07:25:15 +02:00
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",
|
"sourceRevisionAtLastExport": "873fa026de",
|
||||||
"targetRevisionAtLastExport": "5594c916b",
|
"targetRevisionAtLastExport": "92b6974df",
|
||||||
"curatedFiles": {
|
"curatedFiles": {
|
||||||
"/stress/Number-isNaN-basics.js": "DELETED_IN_TARGET",
|
"/stress/Number-isNaN-basics.js": "DELETED_IN_TARGET",
|
||||||
"/stress/Object_static_methods_Object.getOwnPropertyDescriptors-proxy.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"
|
//@ runWebAssembly
|
||||||
//@ runDefault
|
|
||||||
// This passes if it does not crash.
|
// This passes if it does not crash.
|
||||||
new WebAssembly.CompileError({
|
new WebAssembly.CompileError({
|
||||||
valueOf() {
|
valueOf() {
|
Loading…
x
Reference in New Issue
Block a user