mirror of
https://github.com/rkd77/elinks.git
synced 2025-09-21 19:46:23 -04:00
Make global_object a global with the new name smjs_global_object and
create smjs_init_global_object to initialise the global.
This commit is contained in:
committed by
Miciah Dashiel Butler Masters
parent
3174c533b0
commit
d6ecf895ce
@@ -98,8 +98,6 @@ smjs_load_hooks(void)
|
||||
void
|
||||
init_smjs(struct module *module)
|
||||
{
|
||||
JSObject *global_object;
|
||||
|
||||
smjs_rt = JS_NewRuntime(1L * 1024L * 1024L);
|
||||
if (!smjs_rt) return;
|
||||
|
||||
@@ -112,9 +110,9 @@ init_smjs(struct module *module)
|
||||
|
||||
JS_SetErrorReporter(smjs_ctx, error_reporter);
|
||||
|
||||
global_object = smjs_get_global_object();
|
||||
smjs_init_global_object();
|
||||
|
||||
smjs_elinks_object = smjs_get_elinks_object(global_object);
|
||||
smjs_elinks_object = smjs_get_elinks_object(smjs_global_object);
|
||||
|
||||
smjs_load_hooks();
|
||||
}
|
||||
|
Reference in New Issue
Block a user