diff options
Diffstat (limited to 'src')
| -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) |