Skip to content

Commit 460791d

Browse files
committed
f_globals: return empty dict when no globals is set (null)
1 parent bfe3c38 commit 460791d

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/frame/FrameBuiltins.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Object get(VirtualFrame curFrame, PFrame self) {
7979
}
8080
return getDictNode.execute(curFrame, globals, PNone.NO_VALUE);
8181
} else {
82-
return globals != null ? globals : PNone.NONE;
82+
return globals != null ? globals : factory().createDict();
8383
}
8484
}
8585
return factory().createDict();

0 commit comments

Comments
 (0)