3 ms·
The use case is that it exists: It’s already been vetted and it’s part of the language. Not supporting it means you don’t support the entire language.
by thitcanh 6y ago
The use case is that it exists: It’s already been vetted and it’s part of the language. Not supporting it means you don’t support the entire language.
- sknowieowl 6y agoIt's part of the language, but not so much thoroughly vetted. The Chrome/V8 implementation has bugs. https://github.com/evanw/esbuild/issues/253#issuecomment-773785579 https://github.com/evanw/esbuild/issues/253#issuecomment-773...
- thitcanh 6y agoI mean the feature itself has been vetted, i.e. it wouldn’t be in the language if enough people didn’t find it reasonably useful. TLA is a substantial feature implementation-wise so I expect TC39 to have thought “yeah that’s still worth it”
- sknowieowl 6y agoTLA was accepted in the specification before the module loading scenarios were fully baked. Probably best to use async IIFEs until the TLA spec bugs are sorted out and the fixes are subsequently implemented in the major browsers and released. Maybe a year from now.