Skip to content

Commit a13fd39

Browse files
[3.15] gh-145177: Bump emscripten version to 4.0.19 (GH-150926) (#150939)
Bumps the emscripten version to 4.0.19. (cherry picked from commit c83d3d7) Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
1 parent 1e1a9d9 commit a13fd39

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

Lib/test/test_platform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ def test_ios_ver(self):
534534

535535
def test_libc_ver(self):
536536
if support.is_emscripten:
537-
assert platform.libc_ver() == ("emscripten", "4.0.12")
537+
assert platform.libc_ver() == ("emscripten", "4.0.19")
538538
return
539539
# check that libc_ver(executable) doesn't raise an exception
540540
if os.path.isdir(sys.executable) and \

Platforms/emscripten/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Any data that can vary between Python versions is to be kept in this file.
22
# This allows for blanket copying of the Emscripten build code between supported
33
# Python versions.
4-
emscripten-version = "4.0.12"
4+
emscripten-version = "4.0.19"
55
node-version = "24"
66
test-args = [
77
"-m", "test",

Platforms/emscripten/streams.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ const prepareBuffer = (buffer, offset, length) =>
112112

113113
const TTY_OPS = {
114114
ioctl_tiocgwinsz(tty) {
115-
return tty.devops.ioctl_tiocgwinsz?.();
115+
return tty.devops.ioctl_tiocgwinsz?.() ?? [24, 80];
116116
},
117117
};
118118

@@ -188,6 +188,10 @@ class NodeReader {
188188
fsync() {
189189
nodeFsync(this.nodeStream.fd);
190190
}
191+
192+
ioctl_tiocgwinsz() {
193+
return [this.nodeStream.rows ?? 24, this.nodeStream.columns ?? 80];
194+
}
191195
}
192196

193197
class NodeWriter {

0 commit comments

Comments
 (0)