Understanding the 'normalize' Loader hook

Ian Hickson ian at hixie.ch
Tue Aug 12 14:05:36 PDT 2014


Assume my script is http://example.com/test.js, and assume that there is 
no extra information (nobody has registered any module names or anything 
like that). If I do:

   import "a";
   import "./a";
   import "/a";
   import "//example.com/a";
   import "http://example.com/a"

...am I supposed to end up with the same normalized name for all five?

How many entries in [[Modules]] should this result in?

(I understand that the answer depends on the default loader; what I'm 
asking is, what should the default loader's behaviour be.)

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the es-discuss mailing list