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
/
bug511214.js
1
eval(1); // avoid global shape change when we call eval below
2
function q() {
3
var x = 1;
4
function f() {
5
function g() {
6
var t=0;
7
for (var i=0; i<3; i++)
8
x = i;
9
};
10
g();
11
eval("var x = 3");
12
g();
13
assertEq(x, 2);
14
}
15
f();
16
assertEq(x, 2);
17
}
18
q();