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

Print this page

        

*** 154,164 **** // 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(); int slot = 2; for (final Type type : paramTypes) { method.load(type, slot++); if (type == Type.NUMBER || type == Type.LONG) { slot++; --- 154,164 ---- // 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.loadUndefined(Type.OBJECT); int slot = 2; for (final Type type : paramTypes) { method.load(type, slot++); if (type == Type.NUMBER || type == Type.LONG) { slot++;