Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ryanseys
· 6y ago · 0 comments
It's different because it doesn't rely on require() which is non-standard JavaScript.
Comments
[–]
bgdam
6y ago
Node v14 supports ESM modules and the import syntax, which is standard Javascript.
[–]
akamaozu
6y ago
setTimeout is non-standard JavaScript too but I bet your code base has multiple instances of its usage.
[–]
ric2b
6y ago
Is it? It's on every browser I know.
[–]
akamaozu
6y ago
See:
https://stackoverflow.com/questions/8852198/settimeout-if-no...
[–]
ric2b
6y ago
Ah, makes sense, it's not part of the spec so it might be missing on other environments. Thank you.