Sign in
webkit
/
WebKit
/
6b7c45f751131450b1675ef5b4b89fb3a0e35aba
/
.
/
JSTests
/
microbenchmarks
/
throw.js
blob: 5ce4c5ae6d037ef411e7950859809a989afb2027 [
file
] [
log
] [
blame
]
function
foo
()
{
throw
new
Error
();
}
function
bar
()
{
foo
();
}
function
baz
()
{
bar
();
}
function
thingy
()
{
try
{
baz
();
}
catch
(
e
)
{
if
(
e
.
constructor
!=
Error
)
throw
new
Error
(
"Bad error: "
+
e
);
}
}
for
(
var
i
=
0
;
i
<
10000
;
++
i
)
thingy
();