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*/ 10if(!Module.postRun) Module.postRun = []; 11Module.postRun.push(function(Module/*the Emscripten-style module object*/){ 12 'use strict'; 13 /* This function will contain at least the following: 14 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-api-opfs.js => OPFS VFS 23 - sqlite3-api-cleanup.js => final API cleanup 24 - post-js-footer.js => closes this postRun() function 25 */ 26