mirror of
https://github.com/rkd77/elinks.git
synced 2025-06-30 22:19:29 -04:00
[quickjs] window removed DupValue
This commit is contained in:
parent
8f2adc56f0
commit
4b5e2fe808
@ -728,7 +728,7 @@ js_window_init(JSContext *ctx)
|
|||||||
REF_JS(global_obj);
|
REF_JS(global_obj);
|
||||||
|
|
||||||
JS_SetPropertyFunctionList(ctx, global_obj, js_window_proto_funcs, countof(js_window_proto_funcs));
|
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);
|
JS_FreeValue(ctx, global_obj);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user