about summary refs log tree commit diff stats
path: root/lib/quickjs/quickjs.h
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2023-12-09 12:30:31 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-09 22:26:51 +0100
commit1b38f7b7a7709c3fe21f1adcf1d5de6b2e0e48f7 (patch)
tree07284b34312648ff8308728a9239e7154a4b119c /lib/quickjs/quickjs.h
parentf5ecf8c6b6756f37bfbfad4cedf91c53c947e707 (diff)
downloadchawan-1b38f7b7a7709c3fe21f1adcf1d5de6b2e0e48f7.tar.gz
reworked set property and fixed corner cases of typed array set property
Diffstat (limited to 'lib/quickjs/quickjs.h')
-rw-r--r--lib/quickjs/quickjs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/quickjs/quickjs.h b/lib/quickjs/quickjs.h
index 5e11593b..be3d210f 100644
--- a/lib/quickjs/quickjs.h
+++ b/lib/quickjs/quickjs.h
@@ -742,13 +742,13 @@ JSValue JS_GetPropertyStr(JSContext *ctx, JSValueConst this_obj,
 JSValue JS_GetPropertyUint32(JSContext *ctx, JSValueConst this_obj,
                              uint32_t idx);
 
-int JS_SetPropertyInternal(JSContext *ctx, JSValueConst this_obj,
-                           JSAtom prop, JSValue val,
+int JS_SetPropertyInternal(JSContext *ctx, JSValueConst obj,
+                           JSAtom prop, JSValue val, JSValueConst this_obj,
                            int flags);
 static inline int JS_SetProperty(JSContext *ctx, JSValueConst this_obj,
                                  JSAtom prop, JSValue val)
 {
-    return JS_SetPropertyInternal(ctx, this_obj, prop, val, JS_PROP_THROW);
+    return JS_SetPropertyInternal(ctx, this_obj, prop, val, this_obj, JS_PROP_THROW);
 }
 int JS_SetPropertyUint32(JSContext *ctx, JSValueConst this_obj,
                          uint32_t idx, JSValue val);