Y
Hacker News
new
|
ask
|
show
|
jobs
by
ryanseys
2232 days ago
It's different because it doesn't rely on require() which is non-standard JavaScript.
2 comments
bgdam
2232 days ago
Node v14 supports ESM modules and the import syntax, which is standard Javascript.
link
akamaozu
2232 days ago
setTimeout is non-standard JavaScript too but I bet your code base has multiple instances of its usage.
link
ric2b
2232 days ago
Is it? It's on every browser I know.
link
akamaozu
2232 days ago
See:
https://stackoverflow.com/questions/8852198/settimeout-if-no...
link
ric2b
2227 days ago
Ah, makes sense, it's not part of the spec so it might be missing on other environments. Thank you.
link