diff options
author | stephan <stephan@noemail.net> | 2024-05-09 18:00:14 +0000 |
---|---|---|
committer | stephan <stephan@noemail.net> | 2024-05-09 18:00:14 +0000 |
commit | 0e93237b17e652f92a4977abd4c8f8a98804fa4c (patch) | |
tree | 013c9c51d3bf079ee78eca435e54e1e1de4a72d8 /ext/wasm/common/whwasmutil.js | |
parent | f0c9bc596ebd178fdab62634df88a03ae4da1d3e (diff) | |
download | sqlite-0e93237b17e652f92a4977abd4c8f8a98804fa4c.tar.gz sqlite-0e93237b17e652f92a4977abd4c8f8a98804fa4c.zip |
Reformulate a for-in loop to a for loop in wasm.xWrap() to work around a downstream framework-level misbehavior, as reported in [forum:b549992634b55104|forum post b549992634b55104].
FossilOrigin-Name: dc58ed654928574ef254af289bd21c654c587aac80aea36ab96772c35d4ca754
Diffstat (limited to 'ext/wasm/common/whwasmutil.js')
-rw-r--r-- | ext/wasm/common/whwasmutil.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/wasm/common/whwasmutil.js b/ext/wasm/common/whwasmutil.js index bbcf3d493..326b28e22 100644 --- a/ext/wasm/common/whwasmutil.js +++ b/ext/wasm/common/whwasmutil.js @@ -2035,7 +2035,8 @@ globalThis.WhWasmUtilInstaller = function(target){ arguments are, is _not_ part of the public interface and is _not_ stable. */ - for(const i in args) args[i] = cxw.convertArgNoCheck( + let i = 0; + for(; i < args.length; ++i) args[i] = cxw.convertArgNoCheck( argTypes[i], args[i], args, i ); return cxw.convertResultNoCheck(resultType, xf.apply(null,args)); |