projects
/
platform
/
upstream
/
js.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 1.0.0
[platform/upstream/js.git]
/
js
/
src
/
jit-test
/
tests
/
basic
/
setCallGlobal.js
1
var x = 1;
2
function f() {
3
function g() {
4
var t=0;
5
for (var i=0; i<3; i++)
6
x = i;
7
};
8
g();
9
eval("var x = 2");
10
g();
11
assertEq(x, 2);
12
}
13
f();
14
assertEq(x, 2);