mirror of
https://github.com/bellard/quickjs.git
synced 2025-11-15 18:22:15 +03:00
compilation fix for clang
This commit is contained in:
@@ -51319,10 +51319,12 @@ int JS_AddIntrinsicMapSet(JSContext *ctx)
|
|||||||
char buf[ATOM_GET_STR_BUF_SIZE];
|
char buf[ATOM_GET_STR_BUF_SIZE];
|
||||||
|
|
||||||
for(i = 0; i < 4; i++) {
|
for(i = 0; i < 4; i++) {
|
||||||
|
JSCFunctionType ft;
|
||||||
const char *name = JS_AtomGetStr(ctx, buf, sizeof(buf),
|
const char *name = JS_AtomGetStr(ctx, buf, sizeof(buf),
|
||||||
JS_ATOM_Map + i);
|
JS_ATOM_Map + i);
|
||||||
|
ft.constructor_magic = js_map_constructor;
|
||||||
obj1 = JS_NewCConstructor(ctx, JS_CLASS_MAP + i, name,
|
obj1 = JS_NewCConstructor(ctx, JS_CLASS_MAP + i, name,
|
||||||
(JSCFunction *)js_map_constructor, 0, JS_CFUNC_constructor_magic, i,
|
ft.generic, 0, JS_CFUNC_constructor_magic, i,
|
||||||
JS_UNDEFINED,
|
JS_UNDEFINED,
|
||||||
js_map_funcs, i < 2 ? countof(js_map_funcs) : 0,
|
js_map_funcs, i < 2 ? countof(js_map_funcs) : 0,
|
||||||
js_map_proto_funcs_ptr[i], js_map_proto_funcs_count[i],
|
js_map_proto_funcs_ptr[i], js_map_proto_funcs_count[i],
|
||||||
|
|||||||
Reference in New Issue
Block a user