aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/post-js-footer.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2025-01-16 09:27:40 +0000
committerstephan <stephan@noemail.net>2025-01-16 09:27:40 +0000
commit3202b11f66aaeac6dd86f64f3d38dff9e3464b86 (patch)
tree689465a289b094ad0c75d73ad3acba2d682a5367 /ext/wasm/api/post-js-footer.js
parentc5dd908c89436a2c1006a858ea7ebed84836453b (diff)
downloadsqlite-3202b11f66aaeac6dd86f64f3d38dff9e3464b86.tar.gz
sqlite-3202b11f66aaeac6dd86f64f3d38dff9e3464b86.zip
Replace use of Emscripten's Module.postRun() with a custom callback so that we get consistent library init timing with both Emscripten 3.1.x and 4.0.x. Details and discussion are in [https://github.com/emscripten-core/emscripten/issues/23420|Emscripten ticket #23420].
FossilOrigin-Name: 4863a70ac61ff6f868429f16f0141484ea98f973fde1a9aff879252d0f1dbb6b
Diffstat (limited to 'ext/wasm/api/post-js-footer.js')
-rw-r--r--ext/wasm/api/post-js-footer.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/wasm/api/post-js-footer.js b/ext/wasm/api/post-js-footer.js
index d9bb1eab0..7af12cbe3 100644
--- a/ext/wasm/api/post-js-footer.js
+++ b/ext/wasm/api/post-js-footer.js
@@ -1,6 +1,6 @@
/* The current function scope was opened via post-js-header.js, which
gets prepended to this at build-time. This file closes that
scope. */
-//console.warn("This is the end of the Module.postRun handler.");
-})/*postRun.push(...)*/;
-//console.warn("This is the end of the setup of the (pending) Module.postRun");
+//console.warn("This is the end of the Module.runSQLite3PostLoadInit handler.");
+}/*Module.runSQLite3PostLoadInit()*/;
+//console.warn("This is the end of the setup of the (pending) Module.runSQLite3PostLoadInit");