mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00
Provide option to delete Deno namespace in worker (#2717)
This commit is contained in:
parent
aaa7a3eac4
commit
ddee2dff14
18 changed files with 128 additions and 17 deletions
|
@ -18,8 +18,11 @@ import { setLocation } from "./location";
|
|||
// builtin modules
|
||||
import * as deno from "./deno";
|
||||
|
||||
export default function denoMain(name?: string): void {
|
||||
const startResMsg = os.start(name);
|
||||
export default function denoMain(
|
||||
preserveDenoNamespace: boolean = true,
|
||||
name?: string
|
||||
): void {
|
||||
const startResMsg = os.start(preserveDenoNamespace, name);
|
||||
|
||||
setVersions(startResMsg.denoVersion()!, startResMsg.v8Version()!);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue