mirror of
https://github.com/sqlite/sqlite.git
synced 2025-10-24 09:53:10 +03:00
Build cleanups and dead code removal.
FossilOrigin-Name: b516109e5accc885b71900402c800ae855407552648861334c895f0e5dea4ee5
This commit is contained in:
@@ -73,6 +73,7 @@ Module['locateFile'] = function(path, prefix) {
|
||||
//#endif ifnot target=es6-bundler-friendly
|
||||
|
||||
//#if custom-Module.instantiateWasm
|
||||
//#if !wasmfs
|
||||
/**
|
||||
Override Module.instantiateWasm().
|
||||
|
||||
@@ -83,16 +84,11 @@ Module['locateFile'] = function(path, prefix) {
|
||||
|
||||
In such builds we must disable this.
|
||||
*/
|
||||
Module[
|
||||
//#if wasmfs
|
||||
'emscripten-bug-17951'
|
||||
//#else
|
||||
'instantiateWasm'
|
||||
Module['instantiateWasm'
|
||||
/* This works, but it does not have the testing coverage in
|
||||
the wild which Emscripten's default impl does, so we'll
|
||||
save this option until we really need a custom
|
||||
Module.instantiateWasm(). */
|
||||
//#endif
|
||||
] = function callee(imports,onSuccess){
|
||||
const sims = this;
|
||||
const uri = Module.locateFile(
|
||||
@@ -133,6 +129,7 @@ Module[
|
||||
into their glue scripts.
|
||||
*/
|
||||
sIMS.wasmFilename = 'sqlite3.wasm';
|
||||
//#endif !wasmfs
|
||||
//#endif custom-Module.instantiateWasm
|
||||
/*
|
||||
END FILE: api/pre-js.js, noting that the build process may append
|
||||
|
||||
Reference in New Issue
Block a user