mirror of
https://github.com/denoland/deno.git
synced 2025-08-03 02:22:40 +00:00
refactor: Rename JS entry functions (#3732)
This commit is contained in:
parent
0cd605515c
commit
5e2fd183ff
12 changed files with 58 additions and 56 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue