mirror of
https://github.com/rkd77/elinks.git
synced 2024-11-04 08:17:17 -05:00
[quickjs] DupValue
This commit is contained in:
parent
19ad7b1940
commit
8038a999e2
@ -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", global_obj);
|
JS_SetPropertyStr(ctx, global_obj, "window", JS_DupValue(ctx, global_obj));
|
||||||
|
|
||||||
JS_FreeValue(ctx, global_obj);
|
JS_FreeValue(ctx, global_obj);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user