mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-19 19:10:17 +00:00
...
This commit is contained in:
parent
4ed67af972
commit
cc94a382a9
@ -437,6 +437,10 @@ static bool builtins_locals(int argc, py_Ref argv) {
|
||||
|
||||
void py_newglobals(py_Ref out) {
|
||||
Frame* frame = pk_current_vm->top_frame;
|
||||
if(!frame){
|
||||
pk_mappingproxy__namedict(out, &pk_current_vm->main);
|
||||
return;
|
||||
}
|
||||
if(frame->is_dynamic) {
|
||||
py_assign(out, &frame->p0[0]);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user