From 82aa85ef0458e1b97917ffe2626e5631bb444c58 Mon Sep 17 00:00:00 2001 From: bptato Date: Sat, 9 Dec 2023 22:33:58 +0100 Subject: 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... --- lib/quickjs/quickjs.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/quickjs/quickjs.h') 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); -- cgit 1.4.1-2-gfad0