summaryrefslogtreecommitdiff
path: root/std/node/global.ts
diff options
context:
space:
mode:
authorSteven Guerrero <stephenguerrero43@gmail.com>2021-01-25 11:30:31 -0500
committerGitHub <noreply@github.com>2021-01-25 17:30:31 +0100
commit1f8b83ba1aafd2c25c24c00eb7a117588a34b3f9 (patch)
tree5ab730abad715a1a0fd4cb3bc3ba8434ae4ab3c5 /std/node/global.ts
parente0eb111e3e2f76d16682559780baa3d756ed0df7 (diff)
feat(std/node): Add support for process.on("exit") (#8940)
This commit adds support for process.on("exit") by appending a listener to the unload event. Luckily, unload works pretty much the same as on("exit") since it won't schedule any additional work in the even loop either. This commit also solves an error in the Node implementation, since "process.argv" didn't contained the main module route as it was supposed to.
Diffstat (limited to 'std/node/global.ts')
-rw-r--r--std/node/global.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/node/global.ts b/std/node/global.ts
index a07a892e5..550f6ddf9 100644
--- a/std/node/global.ts
+++ b/std/node/global.ts
@@ -1,6 +1,6 @@
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
/// <reference path="./global.d.ts" />
-import { process as processModule } from "./process.ts";
+import processModule from "./process.ts";
import { Buffer as bufferModule } from "./buffer.ts";
import timers from "./timers.ts";