aboutsummaryrefslogtreecommitdiff
path: root/ext/wasm/common/SqliteTestUtil.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/wasm/common/SqliteTestUtil.js')
-rw-r--r--ext/wasm/common/SqliteTestUtil.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/wasm/common/SqliteTestUtil.js b/ext/wasm/common/SqliteTestUtil.js
index 4b4cefbf0..c21469c9b 100644
--- a/ext/wasm/common/SqliteTestUtil.js
+++ b/ext/wasm/common/SqliteTestUtil.js
@@ -191,10 +191,7 @@
*/
initSqlite3: function(){
self.sqlite3ApiConfig = this.sqlite3ApiConfig;
- return self.sqlite3InitModule(this).then(function(M){
- delete self.sqlite3ApiConfig;
- return M;
- });
+ return self.sqlite3InitModule(this).finally(()=>delete self.sqlite3ApiConfig);
}
};
})(self/*window or worker*/);