@@ -48318,6 +48318,10 @@ static const JSCFunctionListEntry js_map_funcs[] = {
48318
48318
JS_CGETSET_DEF("[Symbol.species]", js_get_this, NULL ),
48319
48319
};
48320
48320
48321
+ static const JSCFunctionListEntry js_set_funcs[] = {
48322
+ JS_CGETSET_DEF("[Symbol.species]", js_get_this, NULL ),
48323
+ };
48324
+
48321
48325
static const JSCFunctionListEntry js_map_proto_funcs[] = {
48322
48326
JS_CFUNC_MAGIC_DEF("set", 2, js_map_set, 0 ),
48323
48327
JS_CFUNC_MAGIC_DEF("get", 1, js_map_get, 0 ),
@@ -48412,10 +48416,11 @@ void JS_AddIntrinsicMapSet(JSContext *ctx)
48412
48416
js_map_proto_funcs_count[i]);
48413
48417
obj1 = JS_NewCFunctionMagic(ctx, js_map_constructor, name, 0,
48414
48418
JS_CFUNC_constructor_magic, i);
48415
- if (i < 2) {
48416
- JS_SetPropertyFunctionList(ctx, obj1, js_map_funcs,
48417
- countof(js_map_funcs));
48418
- }
48419
+ if (i == 0)
48420
+ JS_SetPropertyFunctionList(ctx, obj1, js_map_funcs, countof(js_map_funcs));
48421
+ else if (i == 1)
48422
+ JS_SetPropertyFunctionList(ctx, obj1, js_set_funcs, countof(js_set_funcs));
48423
+
48419
48424
JS_NewGlobalCConstructor2(ctx, obj1, name, ctx->class_proto[JS_CLASS_MAP + i]);
48420
48425
}
48421
48426
0 commit comments