11diff --git a/quickjs/quickjs.c b/quickjs/quickjs.c
22--- a/quickjs/quickjs.c
33+++ b/quickjs/quickjs.c
4- @@ -8011 ,7 +8011 ,7 @@ static int JS_DefinePrivateField(JSContext *ctx, JSValueConst obj,
4+ @@ -8003 ,7 +8003 ,7 @@ static int JS_DefinePrivateField(JSContext *ctx, JSValueConst obj,
55 JS_ThrowTypeErrorNotASymbol(ctx);
66 goto fail;
77 }
@@ -10,7 +10,7 @@ diff --git a/quickjs/quickjs.c b/quickjs/quickjs.c
1010 p = JS_VALUE_GET_OBJ(obj);
1111 prs = find_own_property(&pr, p, prop);
1212 if (prs) {
13- @@ -8042 ,7 +8042 ,7 @@ static JSValue JS_GetPrivateField(JSContext *ctx, JSValueConst obj,
13+ @@ -8034 ,7 +8034 ,7 @@ static JSValue JS_GetPrivateField(JSContext *ctx, JSValueConst obj,
1414 /* safety check */
1515 if (unlikely(JS_VALUE_GET_TAG(name) != JS_TAG_SYMBOL))
1616 return JS_ThrowTypeErrorNotASymbol(ctx);
@@ -19,7 +19,7 @@ diff --git a/quickjs/quickjs.c b/quickjs/quickjs.c
1919 p = JS_VALUE_GET_OBJ(obj);
2020 prs = find_own_property(&pr, p, prop);
2121 if (!prs) {
22- @@ -8069 ,7 +8069 ,7 @@ static int JS_SetPrivateField(JSContext *ctx, JSValueConst obj,
22+ @@ -8061 ,7 +8061 ,7 @@ static int JS_SetPrivateField(JSContext *ctx, JSValueConst obj,
2323 JS_ThrowTypeErrorNotASymbol(ctx);
2424 goto fail;
2525 }
@@ -28,7 +28,7 @@ diff --git a/quickjs/quickjs.c b/quickjs/quickjs.c
2828 p = JS_VALUE_GET_OBJ(obj);
2929 prs = find_own_property(&pr, p, prop);
3030 if (!prs) {
31- @@ -8168 ,7 +8168 ,7 @@ static int JS_CheckBrand(JSContext *ctx, JSValueConst obj, JSValueConst func)
31+ @@ -8160 ,7 +8160 ,7 @@ static int JS_CheckBrand(JSContext *ctx, JSValueConst obj, JSValueConst func)
3232 return -1;
3333 }
3434 p = JS_VALUE_GET_OBJ(obj);
@@ -37,7 +37,7 @@ diff --git a/quickjs/quickjs.c b/quickjs/quickjs.c
3737 return (prs != NULL);
3838 }
3939
40- @@ -9972 ,7 +9972 ,7 @@ int JS_DefineProperty(JSContext *ctx, JSValueConst this_obj,
40+ @@ -9983 ,7 +9983 ,7 @@ int JS_DefineProperty(JSContext *ctx, JSValueConst this_obj,
4141 return -1;
4242 }
4343 /* this code relies on the fact that Uint32 are never allocated */
@@ -46,7 +46,7 @@ diff --git a/quickjs/quickjs.c b/quickjs/quickjs.c
4646 /* prs may have been modified */
4747 prs = find_own_property(&pr, p, prop);
4848 assert(prs != NULL);
49- @@ -17220 ,7 +17220 ,7 @@ static JSValue js_call_c_function(JSContext *ctx, JSValueConst func_obj,
49+ @@ -17231 ,7 +17231 ,7 @@ static JSValue js_call_c_function(JSContext *ctx, JSValueConst func_obj,
5050 rt->current_stack_frame = sf;
5151 ctx = p->u.cfunc.realm; /* change the current realm */
5252 sf->js_mode = 0;
@@ -55,7 +55,7 @@ diff --git a/quickjs/quickjs.c b/quickjs/quickjs.c
5555 sf->arg_count = argc;
5656 arg_buf = argv;
5757
58- @@ -17466 ,7 +17466 ,7 @@ static JSValue JS_CallInternal(JSContext *caller_ctx, JSValueConst func_obj,
58+ @@ -17477 ,7 +17477 ,7 @@ static JSValue JS_CallInternal(JSContext *caller_ctx, JSValueConst func_obj,
5959 sf->js_mode = b->js_mode;
6060 arg_buf = argv;
6161 sf->arg_count = argc;
@@ -64,7 +64,7 @@ diff --git a/quickjs/quickjs.c b/quickjs/quickjs.c
6464 var_refs = p->u.func.var_refs;
6565
6666 local_buf = alloca(alloca_size);
67- @@ -42576 ,8 +42576 ,8 @@ static int64_t JS_FlattenIntoArray(JSContext *ctx, JSValueConst target,
67+ @@ -42583 ,8 +42583 ,8 @@ static int64_t JS_FlattenIntoArray(JSContext *ctx, JSValueConst target,
6868 if (!JS_IsUndefined(mapperFunction)) {
6969 JSValueConst args[3] = { element, JS_NewInt64(ctx, sourceIndex), source };
7070 element = JS_Call(ctx, mapperFunction, thisArg, 3, args);
@@ -75,7 +75,7 @@ diff --git a/quickjs/quickjs.c b/quickjs/quickjs.c
7575 if (JS_IsException(element))
7676 return -1;
7777 }
78- @@ -45188 ,7 +45188 ,7 @@ static JSValue js_string_match(JSContext *ctx, JSValueConst this_val,
78+ @@ -45195 ,7 +45195 ,7 @@ static JSValue js_string_match(JSContext *ctx, JSValueConst this_val,
7979 str = js_new_string8(ctx, "g");
8080 if (JS_IsException(str))
8181 goto fail;
@@ -84,7 +84,7 @@ diff --git a/quickjs/quickjs.c b/quickjs/quickjs.c
8484 }
8585 rx = JS_CallConstructor(ctx, ctx->regexp_ctor, args_len, args);
8686 JS_FreeValue(ctx, str);
87- @@ -50747 ,7 +50747 ,7 @@ static JSValue js_weakref_new(JSContext *ctx, JSValueConst val)
87+ @@ -50771 ,7 +50771 ,7 @@ static JSValue js_weakref_new(JSContext *ctx, JSValueConst val)
8888 } else {
8989 assert(JS_IsUndefined(val));
9090 }
@@ -93,7 +93,7 @@ diff --git a/quickjs/quickjs.c b/quickjs/quickjs.c
9393 }
9494
9595 #define MAGIC_SET (1 << 0)
96- @@ -50877 ,7 +50877 ,7 @@ static JSValue map_normalize_key(JSContext *ctx, JSValue key)
96+ @@ -50901 ,7 +50901 ,7 @@ static JSValue map_normalize_key(JSContext *ctx, JSValue key)
9797
9898 static JSValueConst map_normalize_key_const(JSContext *ctx, JSValueConst key)
9999 {
@@ -102,7 +102,7 @@ diff --git a/quickjs/quickjs.c b/quickjs/quickjs.c
102102 }
103103
104104 /* hash multipliers, same as the Linux kernel (see Knuth vol 3,
105- @@ -51310 ,7 +51310 ,7 @@ static JSValue js_map_forEach(JSContext *ctx, JSValueConst this_val,
105+ @@ -51334 ,7 +51334 ,7 @@ static JSValue js_map_forEach(JSContext *ctx, JSValueConst this_val,
106106 args[0] = args[1];
107107 else
108108 args[0] = JS_DupValue(ctx, mr->value);
@@ -111,7 +111,7 @@ diff --git a/quickjs/quickjs.c b/quickjs/quickjs.c
111111 ret = JS_Call(ctx, func, this_arg, 3, (JSValueConst *)args);
112112 JS_FreeValue(ctx, args[0]);
113113 if (!magic)
114- @@ -53027 ,7 +53027 ,7 @@ static JSValue js_promise_all(JSContext *ctx, JSValueConst this_val,
114+ @@ -53051 ,7 +53051 ,7 @@ static JSValue js_promise_all(JSContext *ctx, JSValueConst this_val,
115115 goto fail_reject;
116116 }
117117 resolve_element_data[0] = JS_NewBool(ctx, FALSE);
@@ -120,7 +120,7 @@ diff --git a/quickjs/quickjs.c b/quickjs/quickjs.c
120120 resolve_element_data[2] = values;
121121 resolve_element_data[3] = resolving_funcs[is_promise_any];
122122 resolve_element_data[4] = resolve_element_env;
123- @@ -53448 ,7 +53448 ,7 @@ static JSValue js_async_from_sync_iterator_unwrap_func_create(JSContext *ctx,
123+ @@ -53472 ,7 +53472 ,7 @@ static JSValue js_async_from_sync_iterator_unwrap_func_create(JSContext *ctx,
124124 {
125125 JSValueConst func_data[1];
126126
@@ -129,7 +129,7 @@ diff --git a/quickjs/quickjs.c b/quickjs/quickjs.c
129129 return JS_NewCFunctionData(ctx, js_async_from_sync_iterator_unwrap,
130130 1, 0, 1, func_data);
131131 }
132- @@ -57767 ,8 +57767 ,8 @@ static int js_TA_cmp_generic(const void *a, const void *b, void *opaque) {
132+ @@ -57795 ,8 +57795 ,8 @@ static int js_TA_cmp_generic(const void *a, const void *b, void *opaque) {
133133 cmp = (a_idx > b_idx) - (a_idx < b_idx);
134134 }
135135 done:
0 commit comments