aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/api/extern-post-js.js
diff options
context:
space:
mode:
authorstephan <stephan@noemail.net>2022-10-25 08:06:17 +0000
committerstephan <stephan@noemail.net>2022-10-25 08:06:17 +0000
commitf861b36bf47b3c2586643905a9248b91b8402416 (patch)
treec2c9a875f70358a2eb3974fd826d822ee39eb9cd /ext/wasm/api/extern-post-js.js
parent7704a535d094d7520ab4893bdf83e5bd9e67e892 (diff)
downloadsqlite-f861b36bf47b3c2586643905a9248b91b8402416.tar.gz
sqlite-f861b36bf47b3c2586643905a9248b91b8402416.zip
Minor cleanups and doc improvements in the OPFS sqlite3_vfs proxy.
FossilOrigin-Name: 48645f7bcacf81c4149f26d20ee1752fbe93a02f96b85bd7e28bfa49322137e5
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