-
Sub-task
-
Resolution: Duplicate
-
P3
-
None
-
8u60
-
None
-
generic
-
generic
jjs> try{ x={}; (function(){ try { throw null; } catch(x) { with({}) return; } finally { eval("'a'.replace('a', Function.apply)"); }})() }catch(e){e.printStackTrace()}
java.lang.ClassCastException: jdk.nashorn.internal.scripts.JO1P0 cannot be cast to jdk.nashorn.internal.runtime.WithObject
at jdk.nashorn.internal.runtime.WithObject.withExpressionGuard(WithObject.java:363)
at jdk.nashorn.internal.scripts.Script$Recompilation$15$\^shell\_#1\!84\^eval\_.:program(<shell>#1:84<eval>:1)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:636)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:229)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:387)
at jdk.nashorn.internal.runtime.Context.eval(Context.java:711)
at jdk.nashorn.internal.objects.Global.directEval(Global.java:941)
at jdk.nashorn.internal.scripts.Script$Recompilation$13$12$\^shell\_.L:1(<shell>:1)
at jdk.nashorn.internal.scripts.Script$Recompilation$11$\^shell\_.:program(<shell>:1)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:636)
- clones
-
JDK-8066222 too strong assertion on function expression names
- Resolved
- duplicates
-
JDK-8067139 Finally blocks inlined incorrectly
- Closed
- is cloned by
-
JDK-8066224 Fuzzing bug: constant folding of ternary operator and IfNode with constant test
- Resolved