RFR(S): 8148140: arguments are handled differently in apply for JS functions and AbstractJSObjects

Sundararajan Athijegannathan sundararajan.athijegannathan at oracle.com
Tue Feb 16 16:24:39 UTC 2016


+1

On 2/16/2016 8:10 PM, Michael Haupt wrote:
> Dear all,
>
> please review this fix.
> Bug: https://bugs.openjdk.java.net/browse/JDK-8148140
> Webrev: http://cr.openjdk.java.net/~mhaupt/8148140/webrev.00/
>
> The change fixes apply calls for functions defined as JSObjects by treating them like vararg calls (the arguments are passed in an array). Prior to the change, the code used to always collect arguments in an array, which led to apply calls being passed an array containing the argument array as the sole argument.
>
> Piggybacked: added copyright notice for one test.
>
> Thanks,
>
> Michael
>



More information about the nashorn-dev mailing list