From 04307af779a6ca0f7ff42c704e838c9ae61283de Mon Sep 17 00:00:00 2001 From: Richard Davison Date: Thu, 7 Nov 2024 22:26:04 +0100 Subject: [PATCH] Make "performance" global writable --- quickjs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickjs.c b/quickjs.c index dc38297..d387b17 100644 --- a/quickjs.c +++ b/quickjs.c @@ -54702,7 +54702,7 @@ void JS_AddPerformance(JSContext *ctx) JS_PROP_ENUMERABLE); JS_DefinePropertyValueStr(ctx, ctx->global_obj, "performance", js_dup(performance), - JS_PROP_ENUMERABLE | JS_PROP_CONFIGURABLE); + JS_PROP_WRITABLE | JS_PROP_ENUMERABLE | JS_PROP_CONFIGURABLE); JS_FreeValue(ctx, performance); }