-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b72
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8136298 | emb-9 | Sundararajan Athijegannathan | P4 | Resolved | Fixed | team |
JDK-8140964 | 8u91 | Sundararajan Athijegannathan | P4 | Resolved | Fixed | b01 |
JDK-8132534 | 8u72 | Sundararajan Athijegannathan | P4 | Resolved | Fixed | b01 |
JDK-8147333 | emb-8u91 | Sundararajan Athijegannathan | P4 | Resolved | Fixed | b01 |
Test:
with({}){ /*force vars into scope*/
function () { /*line 2*/
print("hello from nashorn");
}
}
print(this["L:2"])
Expected: undefined
Observed:
function () { /*line 2*/
print("hello from nashorn");
}
This bug was reported via nashorn-dev alias ( http://mail.openjdk.java.net/pipermail/nashorn-dev/2015-June/004776.html ) by Andreas Woess
with({}){ /*force vars into scope*/
function () { /*line 2*/
print("hello from nashorn");
}
}
print(this["L:2"])
Expected: undefined
Observed:
function () { /*line 2*/
print("hello from nashorn");
}
This bug was reported via nashorn-dev alias ( http://mail.openjdk.java.net/pipermail/nashorn-dev/2015-June/004776.html ) by Andreas Woess
- backported by
-
JDK-8132534 Anonymous functions escape to surrounding scope when defined under "with" statement
-
- Resolved
-
-
JDK-8136298 Anonymous functions escape to surrounding scope when defined under "with" statement
-
- Resolved
-
-
JDK-8140964 Anonymous functions escape to surrounding scope when defined under "with" statement
-
- Resolved
-
-
JDK-8147333 Anonymous functions escape to surrounding scope when defined under "with" statement
-
- Resolved
-