diff options
author | bptato <nincsnevem662@gmail.com> | 2025-03-21 20:33:44 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2025-03-21 20:36:04 +0100 |
commit | 02267744008abeb90db321d2848e8128e42f3971 (patch) | |
tree | 8f54082d47d5891555f63b867c3a85412363513e /src/local | |
parent | c095075e054caeb02946c3a3c6346b3bfbfe4b4b (diff) | |
download | chawan-02267744008abeb90db321d2848e8128e42f3971.tar.gz |
jsutils: add toJSValueConstArray, toJSValueConstOpenArray
Diffstat (limited to 'src/local')
-rw-r--r-- | src/local/pager.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim index de376891..d79d46bc 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -2969,7 +2969,7 @@ if (replace.alive) { """) let args = [ctx.toJS(url), ctx.toJS(container)] discard pager.timeouts.setTimeout(ttTimeout, fun, int32(n), - cast[JSValueConstArray](unsafeAddr args[0]).toOpenArray(0, args.high)) + args.toJSValueConstOpenArray()) JS_FreeValue(ctx, fun) for arg in args: JS_FreeValue(ctx, arg) |