]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.15] gh-145177: Bump emscripten version to 4.0.19 (GH-150926) (#150939)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 5 Jun 2026 06:25:21 +0000 (08:25 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Jun 2026 06:25:21 +0000 (06:25 +0000)
Bumps the emscripten version to 4.0.19.
(cherry picked from commit c83d3d789eec9db1fc5ce00d1a320afe20d725fa)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Lib/test/test_platform.py
Platforms/emscripten/config.toml
Platforms/emscripten/streams.mjs

index 9ee97b922ad48e1c73e790e0b18a3d9180666fe3..63c130813ec4972471fab791c2bc54d69670e9f1 100644 (file)
@@ -534,7 +534,7 @@ class PlatformTest(unittest.TestCase):
 
     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 \
index ba2dc8f4a482bfa9a58784ca9608eee8fa86b4cd..401e9396ddbb00943535b2164bef1ae033190f6d 100644 (file)
@@ -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",
index 76ad79f9247f4cf75347aeea2e7d48f88eadca67..1b121d48d4e76c626a7ef8a49b360075f3aaaaba 100644 (file)
@@ -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];
   },
 };
 
@@ -188,6 +188,10 @@ class NodeReader {
   fsync() {
     nodeFsync(this.nodeStream.fd);
   }
+
+  ioctl_tiocgwinsz() {
+    return [this.nodeStream.rows ?? 24, this.nodeStream.columns ?? 80];
+  }
 }
 
 class NodeWriter {