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
{{ message }}
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.
I'm a little confused because the built-in normalize function doesn't throw for URLs, or any other string. (Of course it's possible to override that to do whatever, but if you override it to throw for URLs, then complain that it throws for URLs, I'm not sure what we can do to fix that!)
System.import() skips normalization because normalization requires another input, the importing module's full name, which doesn't make sense in the context of System.import().
http:// is seen as an empty segment throwing a TypeError.
Normalization still makes complete sense if parentName and parentAddress are null. It's just the difference between being at the top of the tree or not.
"System.import() skips normalization because normalization requires another input, the importing module's full name, which doesn't make sense in the context of System.import()."
To me, the referrer for Loader.import() has to be the URL of the caller of import(). Otherwise relative names will not work out.
It is possible to do:
since import skips normalization, so there are no module name checks done.
But it is not possible to do:
As the normalize function throws for URLs.
This should probably be made consistent - I would really strongly suggest having import run through normalization.
The text was updated successfully, but these errors were encountered: