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

[quickjs] DupValue

This commit is contained in:
Witold Filipczyk 2023-01-21 15:06:11 +01:00
parent 19ad7b1940
commit 8038a999e2

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", global_obj);
JS_SetPropertyStr(ctx, global_obj, "window", JS_DupValue(ctx, global_obj));
JS_FreeValue(ctx, global_obj);