1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-22 00:02:13 +03:00

wasm: minor cleanups in the OO API #1 demo.

FossilOrigin-Name: b9cdcc06a8f70694d10ee5b1a0fd9f08f4c705ce576e5103bbafb36fc9cc2122
This commit is contained in:
stephan
2022-08-16 17:29:59 +00:00
parent e0c582850e
commit 6e901b07a3
3 changed files with 9 additions and 9 deletions

View File

@ -15,14 +15,13 @@
*/
'use strict';
(function(){
const T = self.SqliteTestUtil;
const toss = function(...args){throw new Error(args.join(' '))};
const debug = console.debug.bind(console),
log = console.log.bind(console),
warn = console.warn.bind(console),
error = console.error.bind(console);
const demo1 = function(sqlite3,EmModule){
const demo1 = function(sqlite3){
const capi = sqlite3.capi,
oo = sqlite3.oo1,
wasm = capi.wasm;
@ -206,6 +205,7 @@
oo = sqlite3.oo1,
wasm = capi.wasm;
log("Loaded module:",capi.sqlite3_libversion(), capi.sqlite3_sourceid());
log("sqlite3 namespace:",sqlite3);
try {
[ demo1 ].forEach((f)=>f(sqlite3, Module))
}catch(e){