--- a/nashorn/test/script/basic/JDK-8016618.js Wed Apr 02 10:52:39 2014 +0200
+++ b/nashorn/test/script/basic/JDK-8016618.js Fri Apr 11 16:52:14 2014 +0200
@@ -61,11 +61,23 @@
function f() {
// mirror function called with local arguments
+ // global.func.apply(obj, arguments);
global.func.apply(obj, arguments);
}
f(23, "hello");
+f(24, "hello2");
+
+var oldCall = Function.prototype.call;
+Function.prototype.call = function() {
+ throw "this should never happen! go back to apply!";
+};
+
+f(25, "hello3");
+
+Function.prototype.call = oldCall;
+
var fObject = global.eval("Object");
// instanceof on mirrors