aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/extern-post-js.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/wasm/api/extern-post-js.js')
-rw-r--r--ext/wasm/api/extern-post-js.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/wasm/api/extern-post-js.js b/ext/wasm/api/extern-post-js.js
index 768696508..67b32e891 100644
--- a/ext/wasm/api/extern-post-js.js
+++ b/ext/wasm/api/extern-post-js.js
@@ -1,6 +1,9 @@
/* extern-post-js.js must be appended to the resulting sqlite3.js
- file. It gets its name from being used as the value for
- the --extern-post-js=... Emscripten flag. */
+ file. It gets its name from being used as the value for the
+ --extern-post-js=... Emscripten flag. Note that this code, unlike
+ most of the associated JS code, runs outside of the
+ Emscripten-generated module init scope, in the current
+ global scope. */
(function(){
/**
In order to hide the sqlite3InitModule()'s resulting Emscripten