Steven Guerrero
1f8b83ba1a
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.
2021-01-25 17:30:31 +01:00
Ryan Dahl
2b75a11559
update copyright to 2021 ( #9081 )
2021-01-10 21:59:07 -05:00
Liam Murphy
362be01abe
feat(std/node): Add "setImmediate" and "clearImmediate" to global scope ( #8566 )
...
Co-authored-by: Ben Noordhuis <info@bnoordhuis.nl>
2020-12-05 16:16:07 +01:00
Guy Bedford
ff3c5897ea
fix(std/node): Inline default objects to ensure correct prototype ( #8513 )
2020-11-27 13:40:11 -05:00
Steven Guerrero
315d889afa
fix(std/node): correct typings for global, globalThis, window ( #8363 )
2020-11-19 07:23:42 -05:00
Guy Bedford
9fc5b6510c
fix(std/node): only define Node.js globals when loading std/node/global ( #8281 )
2020-11-07 20:27:07 +01:00
Bartek Iwańczuk
8e914be742
build: migrate to dlint ( #8176 )
...
This commit migrates repository from using "eslint"
to "dlint" for linting JavaScript code.
2020-11-03 16:19:29 +01:00
tokiedokie
c4ed3fb7e7
chore: add copyright ( #7593 )
2020-09-21 08:26:41 -04:00
Nayeem Rahman
81ce4499e7
fix: Make std work with isolatedModules ( #7016 )
2020-08-12 12:01:36 +02:00
Kitson Kelly
3fe6bc1b82
fix: Better use of @ts-expect-error ( #6038 )
2020-06-02 00:24:44 -04:00
Kitson Kelly
228f9c207f
Use ts-expect-error instead of ts-ignore. ( #5869 )
2020-05-26 10:02:16 -04:00
Nikolai Vavilov
898773d3f8
std/node: toString for globals ( #5013 )
2020-04-30 13:58:40 -04:00
Maximilien Mellen
90125566bb
Enable TS strict mode by default ( #3899 )
...
Fixes #3324
Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2020-02-19 15:36:18 -05:00
Kevin (Kun) "Kassimo" Qian
6708fcc386
std/node: add some Node.js polyfill to require() ( #3382 )
2019-11-19 16:44:59 -05:00