diff options
author | bptato <nincsnevem662@gmail.com> | 2023-09-20 01:21:50 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-09-20 01:21:50 +0200 |
commit | da326ead89287b50e06817025160681235df7a1f (patch) | |
tree | 1ac3709d5b7710174c82dd2c4e74738affbae02c /src/loader/response.nim | |
parent | ecfdd90f7947b65db1046cb2eeeaa8f1953b119f (diff) | |
download | chawan-da326ead89287b50e06817025160681235df7a1f.tar.gz |
fix compilation on 1.6.14
Diffstat (limited to 'src/loader/response.nim')
-rw-r--r-- | src/loader/response.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/loader/response.nim b/src/loader/response.nim index a25ea476..1133a5e4 100644 --- a/src/loader/response.nim +++ b/src/loader/response.nim @@ -79,7 +79,7 @@ proc blob(response: Response): Promise[JSResult[Blob]] {.jsfunc.} = GC_ref(s) let deallocFun = proc() = GC_unref(s) - let blob = newBlob(addr s[0], s.len, response.contenttype, deallocFun) + let blob = newBlob(unsafeAddr s[0], s.len, response.contenttype, deallocFun) ok(blob)) proc json(ctx: JSContext, this: Response): Promise[JSResult[JSValue]] |