diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-25 00:11:14 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-25 00:16:08 +0100 |
commit | 1bc63e1cd59bff8e7e266bec80ba961fecf772b7 (patch) | |
tree | ada6fa013d78d672da25c1d566458d8503b63ddb /src/bindings | |
parent | e34eb7093944aac9dac543bcf97b77c868251b10 (diff) | |
download | chawan-1bc63e1cd59bff8e7e266bec80ba961fecf772b7.tar.gz |
dom: use JS_EvalFunction; add module fetching stubs
(still no module support in buffer...)
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/quickjs.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bindings/quickjs.nim b/src/bindings/quickjs.nim index ab2d75ad..e4a29029 100644 --- a/src/bindings/quickjs.nim +++ b/src/bindings/quickjs.nim @@ -462,6 +462,7 @@ proc JS_GetStringLength*(str: JSString): uint32 proc JS_Eval*(ctx: JSContext, input: cstring, input_len: csize_t, filename: cstring, eval_flags: cint): JSValue +proc JS_EvalFunction*(ctx: JSContext, val: JSValue): JSValue proc JS_SetInterruptHandler*(rt: JSRuntime, cb: JSInterruptHandler, opaque: pointer) proc JS_SetCanBlock*(rt: JSRuntime, can_block: JS_BOOL) proc JS_SetIsHTMLDDA*(ctx: JSContext, obj: JSValue) |