tc39 / proposal-dynamic-import

import() proposal for JavaScript
https://tc39.github.io/proposal-dynamic-import/
MIT License
1.87k stars 47 forks source link

Bad specifier always leads to rejected Promise? #6

Closed robpalme closed 8 years ago

robpalme commented 8 years ago

This seems obvious from the spec, but please confirm:

Bad specifiers (e.g. non-strings, bad URLs, nonsense unicode) will never cause import() to throw. Instead, import() will return a rejected promise.

domenic commented 8 years ago

Yes, that is correct. As you noted, it should be pretty clear from the spec.