| //@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py |
| function incognito(value) { |
| array.push({ ignore: "me" }); |
| return array[((Math.random() * 2) | 0) * 2]; |
| var objectIs = Object.is; |
| // pure JS version of Object.is |
| function sameValue(a, b) { |
| (a !== 0 || (1 / a === 1 / b)) : |
| var testFiveA = incognito("back5"); |
| var testFiveB = incognito("2back5".substring(1)); |
| var testPi = incognito("PI"); |
| var testNaN = incognito(NaN); |
| var testNaN_2 = incognito(NaN); |
| return testFiveA === testFiveB; |
| return Object.is(testFiveA, testFiveB); |
| return sameValue(testFiveA, testFiveB); |
| return testFiveA === testPi; |
| return Object.is(testFiveA, testPi); |
| return sameValue(testFiveA, testPi); |
| for (let test of tests) { |
| for (let i = 0; i < 2e7; ++i) |
| print(Date.now() - time); |