Skip to content

Commit 6d803ac

Browse files
authored
gh-160161 Fix node_entry.mjs with newest versions of Emscripten (#160264)
Applies an upstream-recommended workaround to work around the removal of ``FS.filesystems``.
1 parent 79a9ca0 commit 6d803ac

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Platforms/emscripten/node_entry.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function rootDirsToMount(Module) {
2222
function mountDirectories(Module) {
2323
for (const dir of rootDirsToMount(Module)) {
2424
Module.FS.mkdirTree(dir);
25-
Module.FS.mount(Module.FS.filesystems.NODEFS, { root: dir }, dir);
25+
Module.FS.mount(Module.NODEFS, { root: dir }, dir);
2626
}
2727
}
2828

‎configure‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎configure.ac‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2449,7 +2449,7 @@ AS_CASE([$ac_sys_system],
24492449
dnl Include file system support
24502450
AS_VAR_APPEND([LINKFORSHARED], [" -sFORCE_FILESYSTEM -lidbfs.js -lnodefs.js -lproxyfs.js -lworkerfs.js"])
24512451
AS_VAR_APPEND([LINKFORSHARED], [" -sEXPORTED_RUNTIME_METHODS=FS,callMain,ENV,HEAPU32,TTY,ERRNO_CODES"])
2452-
AS_VAR_APPEND([LINKFORSHARED], [" -sEXPORTED_FUNCTIONS=_main,_Py_Version,_PyGILState_GetThisThreadState"])
2452+
AS_VAR_APPEND([LINKFORSHARED], [" -sEXPORTED_FUNCTIONS=_main,_Py_Version,_PyGILState_GetThisThreadState,NODEFS"])
24532453
AS_VAR_APPEND([LINKFORSHARED], [" -sSTACK_SIZE=5MB"])
24542454
dnl Avoid bugs in JS fallback string decoding path
24552455
AS_VAR_APPEND([LINKFORSHARED], [" -sTEXTDECODER=2"])

0 commit comments

Comments
 (0)