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.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/wasm/common/SqliteTestUtil.js b/ext/wasm/common/SqliteTestUtil.js
index 08688fd48..5ed423785 100644
--- a/ext/wasm/common/SqliteTestUtil.js
+++ b/ext/wasm/common/SqliteTestUtil.js
@@ -172,13 +172,9 @@
],
//onRuntimeInitialized: function(){},
/* Proxy for C-side stdout output. */
- print: function(){
- console.log.apply(console, Array.prototype.slice.call(arguments));
- },
+ print: (...args)=>{console.log(...args)},
/* Proxy for C-side stderr output. */
- printErr: function(){
- console.error.apply(console, Array.prototype.slice.call(arguments));
- },
+ printErr: (...args)=>{console.error(...args)},
/**
Called by the Emscripten module init bits to report loading
progress. It gets passed an empty argument when loading is done