hg: jdk10/sandbox/nashorn: 8184720: Nashorn engine in strict mode throws a java.lang.ClassCastException when calling apply() and passing the arguments object

chris.hegarty at oracle.com chris.hegarty at oracle.com
Thu Aug 31 21:03:35 UTC 2017


Changeset: bd933afd9e2e
Author:    sdama
Date:      2017-09-01 07:55 +0530
URL:       http://hg.openjdk.java.net/jdk10/sandbox/nashorn/rev/bd933afd9e2e

8184720: Nashorn engine in strict mode throws a java.lang.ClassCastException when calling apply() and passing the arguments object
Summary: Fixed needsCallee method to return true properly in strict mode
Reviewed-by: hannesw, sundar
Contributed-by: srinivas.dama at oracle.com

! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/ir/FunctionNode.java
! src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/ScriptFunctionData.java
+ test/script/basic/JDK-8184720.js



More information about the jdk10-sandbox-changes mailing list