You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So long as the existing module is still available I do think it would be more convenient for most users to automatically assign to the global Temporal symbol.
That being said, I'd strongly prefer this assignment be done separately from the module defining the Temporal namespace object, so that it can still be treated only as a module without having the side-effect of polluting the global namespace.
Currently, this polyfill requires import-ing or require-ing to use. Another option could be to polyfill Temporal into the global namespace.
tc39/proposal-temporal#778 has discussion about why we didn't do this so far.
But as browsers start shipping Temporal, it may make sense to have this polyfill more closely match built-in behavior.
The text was updated successfully, but these errors were encountered: