Sign in
webkit
/
WebKit
/
d0ac5b2877d01758b7af37b5e52d1cc2b4b6c4ea
/
.
/
LayoutTests
/
js
/
regress
/
script-tests
/
string-sub.js
blob: 313bba0ded534407ecce98b8dbc7afb98acd24b4 [
file
] [
log
] [
blame
]
//@ runDefault
function
foo
(
a
,
b
)
{
return
a
-
b
;
}
var
result
=
0
;
for
(
var
i
=
0
;
i
<
1000000
;
++
i
)
result
+=
foo
(
"42"
,
i
);
if
(
result
!=
-
499957500000
)
throw
"Bad result: "
+
result
;