diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2023-12-09 12:30:31 +0100 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2023-12-09 12:30:31 +0100 |
commit | 58f374ef424f02bde22dbc844f2e6f6c4fb6e1a6 (patch) | |
tree | fc86f48f9282db0cc2348704c116f050be4f6bac /quickjs.h | |
parent | 20a57f90d7c3b9916424d7db55d17dc354f3a636 (diff) | |
download | quickjs-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.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |