mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-09 13:10:17 +00:00
Fixes #248: sys.stderr.write() does not use vm->stderr_write
Signed-off-by: Janos Bonic <86970079+janosdebugs@users.noreply.github.com>
This commit is contained in:
parent
56369bfa6f
commit
0982af0c57
@ -84,7 +84,7 @@ void add_module_sys(VM* vm){
|
|||||||
|
|
||||||
vm->bind_func(stderr_, "write", 1, [](VM* vm, ArgsView args) {
|
vm->bind_func(stderr_, "write", 1, [](VM* vm, ArgsView args) {
|
||||||
Str& s = CAST(Str&, args[0]);
|
Str& s = CAST(Str&, args[0]);
|
||||||
vm->_stderr(s.data, s.size);
|
vm->stderr_write(s);
|
||||||
return vm->None;
|
return vm->None;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user