Sign in
webkit
/
WebKit
/
e989104b1acb3d3feb9a3c81be0ba4526409d99b
/
.
/
JSTests
/
microbenchmarks
/
plus-boolean-arith.js
blob: fadc9515c79561a0a0f722162135100056ecc343 [
file
] [
log
] [
blame
]
//@ skip if $model == "Apple Watch Series 3" # added by mark-jsc-stress-test.py
(
function
(
True
)
{
var
x
=
0
;
var
n
=
1000000
for
(
var
i
=
0
;
i
<
n
;
++
i
)
{
var
y
=
True
;
y
++;
x
+=
y
;
}
if
(
x
!=
n
*
2
)
throw
"Error: bad result: "
+
x
;
})(
true
);