Skip to content

Commit 6ea4491

Browse files
committed
fix typos
1 parent 136457e commit 6ea4491

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/BuiltinFunctions.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1616,17 +1616,17 @@ abstract static class LocalsNode extends PythonBuiltinNode {
16161616
private final ConditionProfile inClassProfile = ConditionProfile.createBinaryProfile();
16171617

16181618
@Specialization
1619-
public Object globals(VirtualFrame frame) {
1619+
public Object locals(VirtualFrame frame) {
16201620
Frame callerFrame = readCallerFrameNode.executeWith(frame);
1621-
PFrame pFrame = PArguments.getPFrame(frame);
1621+
PFrame pFrame = PArguments.getPFrame(callerFrame);
16221622
if (condProfile.profile(pFrame != null)) {
16231623
return pFrame.getLocals(factory());
16241624
} else {
16251625
Object specialArgument = PArguments.getSpecialArgument(callerFrame);
16261626
if (inClassProfile.profile(specialArgument instanceof ClassBodyRootNode)) {
1627-
return factory().createDictLocals(frame, true);
1627+
return factory().createDictLocals(callerFrame, true);
16281628
} else {
1629-
return factory().createDictLocals(frame, false);
1629+
return factory().createDictLocals(callerFrame, false);
16301630
}
16311631
}
16321632
}

0 commit comments

Comments
 (0)