Make "performance" global writable

This commit is contained in:
Richard Davison 2024-11-07 22:26:04 +01:00 committed by Saúl Ibarra Corretgé
parent 73cc00e57e
commit 04307af779

View file

@ -54702,7 +54702,7 @@ void JS_AddPerformance(JSContext *ctx)
JS_PROP_ENUMERABLE); JS_PROP_ENUMERABLE);
JS_DefinePropertyValueStr(ctx, ctx->global_obj, "performance", JS_DefinePropertyValueStr(ctx, ctx->global_obj, "performance",
js_dup(performance), js_dup(performance),
JS_PROP_ENUMERABLE | JS_PROP_CONFIGURABLE); JS_PROP_WRITABLE | JS_PROP_ENUMERABLE | JS_PROP_CONFIGURABLE);
JS_FreeValue(ctx, performance); JS_FreeValue(ctx, performance);
} }