Skip to content

Commit 7cebaed

Browse files
committed
Don't use keyword arguments for isPythonFrame check
1 parent 2c06433 commit 7cebaed

File tree

1 file changed

+1
-1
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/function

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/function/PArguments.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public static boolean isPythonFrame(Frame frame) {
8484
}
8585

8686
public static boolean isPythonFrame(Object[] frameArgs) {
87-
return frameArgs.length >= USER_ARGUMENTS_OFFSET && frameArgs[INDEX_KEYWORD_ARGUMENTS] instanceof PKeyword[];
87+
return frameArgs.length >= USER_ARGUMENTS_OFFSET && frameArgs[INDEX_CURRENT_FRAME_INFO] instanceof PFrame.Reference;
8888
}
8989

9090
public static Object[] withGlobals(PythonObject globals) {

0 commit comments

Comments
 (0)