Sign in
webkit
/
WebKit
/
87a7a7c1c7f13f5553e380a9e21b89f73f375cdc
/
.
/
JSTests
/
stress
/
eval-that-is-not-eval.js
blob: c6c3064488c71ccbbc75a60298a3af46f339a788 [
file
] [
log
] [
blame
]
function
foo
(
a
)
{
return
eval
(
a
);
}
noInline
(
foo
);
eval
=
function
(
a
)
{
return
a
+
1
;
}
for
(
var
i
=
0
;
i
<
10000
;
++
i
)
{
var
result
=
foo
(
42
);
if
(
result
!=
43
)
throw
"Error: bad result: "
+
result
;
}