How can GetModuleNamespace throw a SyntaxError?
jcoppeard at mozilla.com
Mon Dec 14 11:41:17 UTC 2015
Thank you, that explains it.
On 11/12/2015 23:56, Allen Wirfs-Brock wrote:
>> On Dec 10, 2015, at 9:27 AM, Caridy Patiño <caridy at gmail.com
>> <mailto:caridy at gmail.com>> wrote:
>> Isiah: your example triggers a different error. ResolveExport is
>> taking care of detecting that particular case
>> (https://whatwg.github.io/loader/#resolve-export), it is also a
>> SyntaxError :)
>> Jon: yes, it might be a redundant error, I will investigate more.
> The definition of ModuleDeclarationInstantiation given in 188.8.131.52.4
> is only applicable to Source Text Modules, but an actual module
> circularity might involve implementation defined modules types that
> possibly might not perform the equivalent check. GetModuleNamespace is
> an abstract operation that can be applied to any kind of module so it
> must be prepared to deal with the case where a module reports that it
> can not provide an unambiguous binding for a requested name.
> es-discuss mailing list
> es-discuss at mozilla.org
More information about the es-discuss