mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1246134 - Fix loading of external self-hosted JS using MOZ_SELFHOSTEDJS. r=efaust
This commit is contained in:
parent
6754883903
commit
038951e06f
@ -2057,9 +2057,7 @@ JSRuntime::initSelfHosting(JSContext* cx)
|
||||
|
||||
char* filename = getenv("MOZ_SELFHOSTEDJS");
|
||||
if (filename) {
|
||||
RootedScript script(cx);
|
||||
if (Compile(cx, options, filename, &script))
|
||||
ok = Execute(cx, script, *shg.get(), rv.address());
|
||||
ok = ok && Evaluate(cx, options, filename, &rv);
|
||||
} else {
|
||||
uint32_t srcLen = GetRawScriptsSize();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user