3 ms·
It's different because it doesn't rely on require() which is non-standard JavaScript.
by ryanseys 6y ago
It's different because it doesn't rely on require() which is non-standard JavaScript.
- bgdam 6y agoNode v14 supports ESM modules and the import syntax, which is standard Javascript.
- akamaozu 6y agosetTimeout is non-standard JavaScript too but I bet your code base has multiple instances of its usage.
- ric2b 6y agoIs it? It's on every browser I know.
- akamaozu 6y agoSee: https://stackoverflow.com/questions/8852198/settimeout-if-not-defined-in-ecmascript-spec-where-can-i-learn-how-it-works https://stackoverflow.com/questions/8852198/settimeout-if-no...
- ric2b 6y agoAh, makes sense, it's not part of the spec so it might be missing on other environments. Thank you.