Bug 1246134 - Fix loading of external self-hosted JS using MOZ_SELFHOSTEDJS. r=efaust

This commit is contained in:
Till Schneidereit 2016-02-07 20:08:08 +01:00
parent 6754883903
commit 038951e06f

View File

@ -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();