-
Sub-task
-
Resolution: Fixed
-
P3
-
9
-
None
-
b22
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8064155 | 8u45 | Attila Szegedi | P3 | Resolved | Fixed | b01 |
JDK-8055620 | 8u40 | Attila Szegedi | P3 | Resolved | Fixed | b04 |
JDK-8070392 | emb-8u47 | Attila Szegedi | P3 | Resolved | Fixed | team |
print((function(global){
var x = 1;
with(global) {
eval("eval('var x=0')");
}
return x;
})(this));
print("typeof x?" + typeof x);
Expected:
0
typeof x? undefined
Actual:
1
typeof x? number
print((function(global){
var x = 1;
with({eval: global.eval}) {
eval("eval('var x=0')");
}
return x;
})(this));
print("typeof x? " + typeof x);
Expected:
0
typeof x? undefined
Actual:
1
typeof x? number
var x = 1;
with(global) {
eval("eval('var x=0')");
}
return x;
})(this));
print("typeof x?" + typeof x);
Expected:
0
typeof x? undefined
Actual:
1
typeof x? number
print((function(global){
var x = 1;
with({eval: global.eval}) {
eval("eval('var x=0')");
}
return x;
})(this));
print("typeof x? " + typeof x);
Expected:
0
typeof x? undefined
Actual:
1
typeof x? number
- backported by
-
JDK-8055620 eval within 'with' statement does not use correct scope if with scope expression has a copy of eval
- Resolved
-
JDK-8064155 eval within 'with' statement does not use correct scope if with scope expression has a copy of eval
- Resolved
-
JDK-8070392 eval within 'with' statement does not use correct scope if with scope expression has a copy of eval
- Resolved