From 09bb1c03b5c93294dc4a3355a831a17a3274e31b Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Thu, 7 Dec 2023 17:51:32 +0100 Subject: fixed private field setters (github issue #194) --- lib/quickjs/quickjs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/quickjs/quickjs.c') diff --git a/lib/quickjs/quickjs.c b/lib/quickjs/quickjs.c index 494c4a69..e6a5d2e9 100644 --- a/lib/quickjs/quickjs.c +++ b/lib/quickjs/quickjs.c @@ -30078,6 +30078,7 @@ static int resolve_scope_private_field(JSContext *ctx, JSFunctionDef *s, /* obj func value */ dbuf_putc(bc, OP_call_method); dbuf_put_u16(bc, 1); + dbuf_putc(bc, OP_drop); } break; default: @@ -32156,7 +32157,7 @@ static __exception int ss_check(JSContext *ctx, StackSizeState *s, if (s->stack_level_tab[pos] != 0xffff) { /* already explored: check that the stack size is consistent */ if (s->stack_level_tab[pos] != stack_len) { - JS_ThrowInternalError(ctx, "unconsistent stack size: %d %d (pc=%d)", + JS_ThrowInternalError(ctx, "inconsistent stack size: %d %d (pc=%d)", s->stack_level_tab[pos], stack_len, pos); return -1; } else { -- cgit 1.4.1-2-gfad0