Snapshot of upstream SQLite 3.41.0
[sqlcipher.git] / ext / wasm / api / post-js-header.js
blob0e27e1fd946aa11c830f9b3f3e38792e4a4167bc
1 /**
2 post-js-header.js is to be prepended to other code to create
3 post-js.js for use with Emscripten's --post-js flag. This code
4 requires that it be running in that context. The Emscripten
5 environment must have been set up already but it will not have
6 loaded its WASM when the code in this file is run. The function it
7 installs will be run after the WASM module is loaded, at which
8 point the sqlite3 JS API bits will get set up.
9 */
10 if(!Module.postRun) Module.postRun = [];
11 Module.postRun.push(function(Module/*the Emscripten-style module object*/){
12 'use strict';
13 /* This function will contain at least the following:
15 - post-js-header.js (this file)
16 - sqlite3-api-prologue.js => Bootstrapping bits to attach the rest to
17 - common/whwasmutil.js => Replacements for much of Emscripten's glue
18 - jaccwaby/jaccwabyt.js => Jaccwabyt (C/JS struct binding)
19 - sqlite3-api-glue.js => glues previous parts together
20 - sqlite3-api-oo.js => SQLite3 OO API #1
21 - sqlite3-api-worker1.js => Worker-based API
22 - sqlite3-vfs-helper.js => Internal-use utilities for...
23 - sqlite3-vfs-opfs.js => OPFS VFS
24 - sqlite3-api-cleanup.js => final API cleanup
25 - post-js-footer.js => closes this postRun() function