mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-05 17:14:27 +03:00
do not add script handler if runtime cannot be initialised
This commit is contained in:
parent
1b4604130e
commit
25e85f1429
@ -38,8 +38,10 @@ void js_initialise(void)
|
|||||||
rt = JS_NewRuntime(8L * 1024L * 1024L);
|
rt = JS_NewRuntime(8L * 1024L * 1024L);
|
||||||
JSLOG("New runtime handle %p", rt);
|
JSLOG("New runtime handle %p", rt);
|
||||||
|
|
||||||
/* register script content handler */
|
if (rt != NULL) {
|
||||||
javascript_init();
|
/* register script content handler */
|
||||||
|
javascript_init();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void js_finalise(void)
|
void js_finalise(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user