Sign in
webkit
/
WebKit
/
5c46bef7ab98d4e8242fd1cdbd4a8339e4d4801f
/
.
/
JSTests
/
stress
/
throw-from-ftl-in-loop.js
blob: b87cc8e270195dcfd386e247a184a6e692bc838d [
file
] [
log
] [
blame
]
var
didThrow
=
false
;
try
{
(
function
()
{
for
(
var
i
=
0
;
i
<
1000000
;
++
i
)
{
}
throw
42
;
})();
}
catch
(
e
)
{
if
(
e
!=
42
)
throw
"Error: bad result: "
+
e
;
didThrow
=
true
;
}
if
(!
didThrow
)
throw
"Error: should have thrown but didn't."
;