-
Sub-task
-
Resolution: Fixed
-
P3
-
9
-
None
-
b22
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8064153 | 8u45 | Attila Szegedi | P3 | Resolved | Fixed | b01 |
JDK-8055618 | 8u40 | Attila Szegedi | P3 | Resolved | Fixed | b04 |
JDK-8070390 | emb-8u47 | Attila Szegedi | P3 | Resolved | Fixed | team |
jjs> eval("var x = 10; print(delete x); print(typeof x)");
Expected output:
true
undefined
Actual output:
false
number
jjs> eval("function func() {}; print(delete func); print(typeof func);");
Expected output:
true
undefined
Actual output:
false
function
See http://es5.github.io/#x10.5 Declaration Binding Instantiation, step 2 says:
"If code is eval code, then let configurableBindings be true else let configurableBindings be false."
subsequent steps of the spec use "configurableBindings" flag.
Expected output:
true
undefined
Actual output:
false
number
jjs> eval("function func() {}; print(delete func); print(typeof func);");
Expected output:
true
undefined
Actual output:
false
function
See http://es5.github.io/#x10.5 Declaration Binding Instantiation, step 2 says:
"If code is eval code, then let configurableBindings be true else let configurableBindings be false."
subsequent steps of the spec use "configurableBindings" flag.
- backported by
-
JDK-8055618 bindings created for declarations in eval code are not mutable
-
- Resolved
-
-
JDK-8064153 bindings created for declarations in eval code are not mutable
-
- Resolved
-
-
JDK-8070390 bindings created for declarations in eval code are not mutable
-
- Resolved
-