Make performance configurable

This commit is contained in:
Nathan Rajlich 2023-12-22 02:26:53 -08:00 committed by Saúl Ibarra Corretgé
parent f0ef9e1593
commit f94fbe2f8a

View file

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