repo.or.cz
/
chromium-blink-merge.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge Chromium + Blink git repositories
[chromium-blink-merge.git]
/
third_party
/
WebKit
/
LayoutTests
/
fast
/
js
/
regress
/
script-tests
/
inline-get-scoped-var.js
blob
eeed5167d5dd5bae7c45975b127996231f87c16c
1
function
foo
(
x
) {
2
function
bar
(
y
) {
3
return
x
+
y
;
4
}
5
6
var
result
=
0
;
7
for
(
var
i
=
0
;
i
<
2000000
; ++
i
)
8
result
=
bar
(
1
);
9
10
return
result
;
11
}
12
13
var
result
=
foo
(
5
);
14
if
(
result
!=
6
)
15
throw
"Bad result: "
+
result
;