Sign in
webkit
/
WebKit
/
e6e5341d629375fc8fb77929c93c5f711fd50f24
/
.
/
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
);