src/jdk/nashorn/internal/codegen/SharedScopeCall.java

Print this page

        

@@ -154,11 +154,11 @@
 
         // If this is a get we're done, otherwise call the value as function.
         if (isCall) {
             method.convert(Type.OBJECT);
             // ScriptFunction will see CALLSITE_SCOPE and will bind scope accordingly.
-            method.loadNull();
+            method.loadUndefined(Type.OBJECT);
             int slot = 2;
             for (final Type type : paramTypes) {
                 method.load(type, slot++);
                 if (type == Type.NUMBER || type == Type.LONG) {
                     slot++;