diff options
author | Steven Guerrero <stephenguerrero43@gmail.com> | 2021-01-25 11:30:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-25 17:30:31 +0100 |
commit | 1f8b83ba1aafd2c25c24c00eb7a117588a34b3f9 (patch) | |
tree | 5ab730abad715a1a0fd4cb3bc3ba8434ae4ab3c5 /std/node/global.d.ts | |
parent | e0eb111e3e2f76d16682559780baa3d756ed0df7 (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.d.ts')
-rw-r--r-- | std/node/global.d.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/std/node/global.d.ts b/std/node/global.d.ts index 707073e2e..94baf03b7 100644 --- a/std/node/global.d.ts +++ b/std/node/global.d.ts @@ -1,5 +1,5 @@ // Copyright 2018-2021 the Deno authors. All rights reserved. MIT license. -import { process as processModule } from "./process.ts"; +import processModule from "./process.ts"; import { Buffer as bufferModule } from "./buffer.ts"; import timers from "./timers.ts"; |