Sign in
webkit
/
WebKit
/
e8494a3e400e9840c5c9d3a9498548be8949fc6c
/
.
/
JSTests
/
microbenchmarks
/
inline-get-scoped-var.js
blob: eeed5167d5dd5bae7c45975b127996231f87c16c [
file
] [
log
] [
blame
]
function
foo
(
x
)
{
function
bar
(
y
)
{
return
x
+
y
;
}
var
result
=
0
;
for
(
var
i
=
0
;
i
<
2000000
;
++
i
)
result
=
bar
(
1
);
return
result
;
}
var
result
=
foo
(
5
);
if
(
result
!=
6
)
throw
"Bad result: "
+
result
;