-
Sub-task
-
Resolution: Fixed
-
P3
-
9
-
None
-
b22
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8064151 | 8u45 | Attila Szegedi | P3 | Resolved | Fixed | b01 |
JDK-8055616 | 8u40 | Attila Szegedi | P3 | Resolved | Fixed | b04 |
JDK-8070388 | emb-8u47 | Attila Szegedi | P3 | Resolved | Fixed | team |
jjs -J-Djava.ext.dirs=$jdk9-dev/nashorn/dist
jjs> function f(){var a=1; with({get a(){return false}}) return a}; f()
<shell>:1 TypeError: Cannot set property "a" of [object Object] that has only a getter
With optimistic types switched off, evaluates to (expected) false value.
jjs -J-Djava.ext.dirs=$jdk9-dev/nashorn/dist --optimistic-types=false
jjs> function f(){var a=1; with({get a(){return false}}) return a}; f()
false
jjs> function f(){var a=1; with({get a(){return false}}) return a}; f()
<shell>:1 TypeError: Cannot set property "a" of [object Object] that has only a getter
With optimistic types switched off, evaluates to (expected) false value.
jjs -J-Djava.ext.dirs=$jdk9-dev/nashorn/dist --optimistic-types=false
jjs> function f(){var a=1; with({get a(){return false}}) return a}; f()
false
- backported by
-
JDK-8055616 function f(){ var a=1; with({ get a() { return false } }) return a }; f() throws TypeError with optimistic compilation
-
- Resolved
-
-
JDK-8064151 function f(){ var a=1; with({ get a() { return false } }) return a }; f() throws TypeError with optimistic compilation
-
- Resolved
-
-
JDK-8070388 function f(){ var a=1; with({ get a() { return false } }) return a }; f() throws TypeError with optimistic compilation
-
- Resolved
-