refactor: Rename JS entry functions (#3732)

This commit is contained in:
Bartek Iwańczuk 2020-01-21 15:53:29 +01:00 committed by GitHub
parent 0cd605515c
commit 5e2fd183ff
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 58 additions and 56 deletions

View file

@ -11,8 +11,8 @@ import { setLocation } from "./location.ts";
import { setBuildInfo } from "./build.ts";
import { setSignals } from "./process.ts";
function denoMain(preserveDenoNamespace = true, name?: string): void {
const s = os.start(preserveDenoNamespace, name);
function bootstrapMainRuntime(): void {
const s = os.start(true);
setBuildInfo(s.os, s.arch);
setSignals();
@ -35,4 +35,4 @@ function denoMain(preserveDenoNamespace = true, name?: string): void {
replLoop();
}
}
globalThis["denoMain"] = denoMain;
globalThis["bootstrapMainRuntime"] = bootstrapMainRuntime;