diff options
Diffstat (limited to 'cli/js/runtime_main.ts')
-rw-r--r-- | cli/js/runtime_main.ts | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/cli/js/runtime_main.ts b/cli/js/runtime_main.ts index 96bda3cb0..1298fe90e 100644 --- a/cli/js/runtime_main.ts +++ b/cli/js/runtime_main.ts @@ -7,6 +7,9 @@ // - `bootstrapMainRuntime` - must be called once, when Isolate is created. // It sets up runtime by providing globals for `WindowScope` and adds `Deno` global. +import * as Deno from "./deno.ts"; +import * as domTypes from "./dom_types.ts"; +import * as csprng from "./get_random_values.ts"; import { readOnly, writable, @@ -14,21 +17,18 @@ import { windowOrWorkerGlobalScopeProperties, eventTargetProperties } from "./globals.ts"; -import * as domTypes from "./dom_types.ts"; -import { log } from "./util.ts"; -import * as runtime from "./runtime.ts"; -import { args } from "./deno.ts"; -import * as csprng from "./get_random_values.ts"; -import { replLoop } from "./repl.ts"; -import { setSignals } from "./process.ts"; -import * as Deno from "./deno.ts"; import { internalObject } from "./internals.ts"; +import { setSignals } from "./process.ts"; +import { replLoop } from "./repl.ts"; +import * as runtime from "./runtime.ts"; +import { symbols } from "./symbols.ts"; +import { log } from "./util.ts"; // TODO: factor out `Deno` global assignment to separate function // Add internal object to Deno object. // This is not exposed as part of the Deno types. // @ts-ignore -Deno[Deno.symbols.internal] = internalObject; +Deno[symbols.internal] = internalObject; export const mainRuntimeGlobalProperties = { window: readOnly(globalThis), @@ -74,10 +74,10 @@ export function bootstrapMainRuntime(): void { log("cwd", s.cwd); for (let i = 0; i < s.args.length; i++) { - args.push(s.args[i]); + Deno.args.push(s.args[i]); } - log("args", args); - Object.freeze(args); + log("args", Deno.args); + Object.freeze(Deno.args); if (s.repl) { replLoop(); |