Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Lib/test/test_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ def test_ios_ver(self):

def test_libc_ver(self):
if support.is_emscripten:
assert platform.libc_ver() == ("emscripten", "4.0.12")
assert platform.libc_ver() == ("emscripten", "4.0.19")
return
# check that libc_ver(executable) doesn't raise an exception
if os.path.isdir(sys.executable) and \
Expand Down
2 changes: 1 addition & 1 deletion Platforms/emscripten/config.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Any data that can vary between Python versions is to be kept in this file.
# This allows for blanket copying of the Emscripten build code between supported
# Python versions.
emscripten-version = "4.0.12"
emscripten-version = "4.0.19"
node-version = "24"
test-args = [
"-m", "test",
Expand Down
6 changes: 5 additions & 1 deletion Platforms/emscripten/streams.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ const prepareBuffer = (buffer, offset, length) =>

const TTY_OPS = {
ioctl_tiocgwinsz(tty) {
return tty.devops.ioctl_tiocgwinsz?.();
return tty.devops.ioctl_tiocgwinsz?.() ?? [24, 80];
},
};

Expand Down Expand Up @@ -188,6 +188,10 @@ class NodeReader {
fsync() {
nodeFsync(this.nodeStream.fd);
}

ioctl_tiocgwinsz() {
return [this.nodeStream.rows ?? 24, this.nodeStream.columns ?? 80];
}
}

class NodeWriter {
Expand Down
Loading