mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 01:33:16 +03:00
Can't tell if failure to create a JS context is an error or not.
It won't create one when built jsoff.
This commit is contained in:
parent
379d97123a
commit
c7a3229494
@ -857,9 +857,8 @@ nserror browser_window_initialise_common(enum browser_window_create_flags flags,
|
|||||||
bw->jsctx = js_newcontext(nsoption_int(script_timeout),
|
bw->jsctx = js_newcontext(nsoption_int(script_timeout),
|
||||||
slow_script,
|
slow_script,
|
||||||
NULL);
|
NULL);
|
||||||
if (bw->jsctx == NULL) {
|
/* If bw->jsctx == NULL, it might be because we built with no JS.
|
||||||
return NSERROR_NOMEM;
|
* TODO: Error handling in the with JS case. */
|
||||||
}
|
|
||||||
|
|
||||||
if (flags & BW_CREATE_CLONE) {
|
if (flags & BW_CREATE_CLONE) {
|
||||||
assert(existing != NULL);
|
assert(existing != NULL);
|
||||||
|
Loading…
Reference in New Issue
Block a user