json correct args

This commit is contained in:
2026-02-20 17:04:14 -06:00
parent 844ca0b8d5
commit 611d538e9f
2 changed files with 11 additions and 11 deletions

4
json.c
View File

@@ -52,8 +52,8 @@ static JSValue js_cell_json_decode (JSContext *ctx, JSValue this_val, int argc,
}
static const JSCFunctionListEntry js_cell_json_funcs[] = {
JS_CFUNC_DEF ("encode", 1, js_cell_json_encode),
JS_CFUNC_DEF ("decode", 1, js_cell_json_decode),
JS_CFUNC_DEF ("encode", 4, js_cell_json_encode),
JS_CFUNC_DEF ("decode", 2, js_cell_json_decode),
};
JSValue js_core_json_use (JSContext *ctx) {