diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-02 00:53:27 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-02 00:53:27 +0100 |
commit | 2e37c2cee2a36265523962af4f8ff1402dc44d0b (patch) | |
tree | a7d50738eb04cddf66c68acc0580a5367dfecf85 /src/bindings | |
parent | b49a080866f7b7020e9b6c9997901d0903d466bc (diff) | |
download | chawan-2e37c2cee2a36265523962af4f8ff1402dc44d0b.tar.gz |
js: get rid of getJSValue
just use an UncheckedArray in the binding
Diffstat (limited to 'src/bindings')
-rw-r--r-- | src/bindings/quickjs.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bindings/quickjs.nim b/src/bindings/quickjs.nim index 01182b90..65d6c679 100644 --- a/src/bindings/quickjs.nim +++ b/src/bindings/quickjs.nim @@ -68,7 +68,8 @@ type JSRuntime* = ptr object JSContext* = ptr object JSModuleDef* = ptr object - JSCFunction* = proc (ctx: JSContext, this_val: JSValue, argc: cint, argv: ptr JSValue): JSValue {.cdecl.} + JSCFunction* = proc (ctx: JSContext, this_val: JSValue, argc: cint, + argv: ptr UncheckedArray[JSValue]): JSValue {.cdecl.} JSCFunctionData* = proc (ctx: JSContext, this_val: JSValue, argc: cint, argv: ptr JSValue, magic: cint, func_data: ptr JSValue): JSValue {.cdecl.} JSGetterFunction* = proc(ctx: JSContext, this_val: JSValue): JSValue {.cdecl.} JSSetterFunction* = proc(ctx: JSContext, this_val: JSValue, val: JSValue): JSValue {.cdecl.} |