summaryrefslogtreecommitdiff
path: root/quickjs.h
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2023-12-09 12:30:31 +0100
committerFabrice Bellard <fabrice@bellard.org>2023-12-09 12:30:31 +0100
commit58f374ef424f02bde22dbc844f2e6f6c4fb6e1a6 (patch)
treefc86f48f9282db0cc2348704c116f050be4f6bac /quickjs.h
parent20a57f90d7c3b9916424d7db55d17dc354f3a636 (diff)
downloadquickjs-58f374ef424f02bde22dbc844f2e6f6c4fb6e1a6.tar.gz
quickjs-58f374ef424f02bde22dbc844f2e6f6c4fb6e1a6.zip
reworked set property and fixed corner cases of typed array set property
Diffstat (limited to 'quickjs.h')
-rw-r--r--quickjs.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/quickjs.h b/quickjs.h
index d4a5cd3..ce3dc90 100644
--- a/quickjs.h
+++ b/quickjs.h
@@ -733,13 +733,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);