Thanks. I've tested the patch on jdk8u. I've sent for approval request: http://mail.openjdk.java.net/pipermail/jdk8u-dev/2016-December/006186.html
-Sundar On 12/2/2016 12:56 PM, Art Fiedler wrote: > This seems to be working as expected. I tested your modifications on jdk8 > nashorn-dev > > Good catch Hannes! Please review the updated webrev : >> http://cr.openjdk.java.net/~sundar/8170565/webrev.01/ >> >> PS. Had to use Function.prototype.call.call to pass undefined this >> explicitly (as JSObject.call can't be called from script). >> >> -Sundar