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