about summary refs log tree commit diff stats
path: root/lib/quickjs/quickjs.h
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-09 22:33:58 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-09 22:35:31 +0100
commit82aa85ef0458e1b97917ffe2626e5631bb444c58 (patch)
tree566162e4fc7ff8feecc5f490587aa9f6678c8f7c /lib/quickjs/quickjs.h
parent5b4018fc0245029163d9e86c81191d5eaa489863 (diff)
downloadchawan-82aa85ef0458e1b97917ffe2626e5631bb444c58.tar.gz
Revert "reworked set property and fixed corner cases of typed array set property"
This reverts commit 1b38f7b7a7709c3fe21f1adcf1d5de6b2e0e48f7.

Breaks tostring setter for some reason; we'll have to investigate...
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 be3d210f..5e11593b 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 obj,
-                           JSAtom prop, JSValue val, JSValueConst this_obj,
+int JS_SetPropertyInternal(JSContext *ctx, JSValueConst this_obj,
+                           JSAtom prop, JSValue val,
                            int flags);
 static inline int JS_SetProperty(JSContext *ctx, JSValueConst this_obj,
                                  JSAtom prop, JSValue val)
 {
-    return JS_SetPropertyInternal(ctx, this_obj, prop, val, this_obj, JS_PROP_THROW);
+    return JS_SetPropertyInternal(ctx, this_obj, prop, val, JS_PROP_THROW);
 }
 int JS_SetPropertyUint32(JSContext *ctx, JSValueConst this_obj,
                          uint32_t idx, JSValue val);