Filed a bug: https://bugs.openjdk.java.net/browse/JDK-8166186
-Sundar
On 9/15/2016 6:32 PM, Esben Andreasen wrote:
> Nashorn can produce a ClassCastException when executing a plain
> JavaScript program.
>
> The exception happens in a situation where the arguments variable is
> used in conjunctio
Nashorn can produce a ClassCastException when executing a plain
JavaScript program.
The exception happens in a situation where the arguments variable is
used in conjunction with call and apply.
## Observed behavior
Code:
```
function F(SOME_PARAMETER) {
Function.prototype.call.apply(G, argumen