1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[quickjs] window removed DupValue

This commit is contained in:
Witold Filipczyk 2023-01-21 15:36:47 +01:00
parent 8f2adc56f0
commit 4b5e2fe808

View File

@ -728,7 +728,7 @@ js_window_init(JSContext *ctx)
REF_JS(global_obj);
JS_SetPropertyFunctionList(ctx, global_obj, js_window_proto_funcs, countof(js_window_proto_funcs));
JS_SetPropertyStr(ctx, global_obj, "window", JS_DupValue(ctx, global_obj));
JS_SetPropertyStr(ctx, global_obj, "window", global_obj);
JS_FreeValue(ctx, global_obj);