archives

« Bugzilla Issues Index

#3991 — getting an ambiguous export on a module namespace exotic object should return undefined


In 9.4.6.8., step 7.b., don't throw a ReferenceError but return undefined.


actually, it should never get either null or ambiguous back from ResolveReport call because the name has already been checked (steps 3&4) gainst the known export names. those names were determined by GetModuleNamespace and checked using ResolveExport

what I've have there now is an assertion that the resolve bindeing should never be null or "unambiguous".

Can you think of a situation with a binding would dynamically go away? If so, that would seem to be a violation of the requirement that ResolveExport is idempotent and side-effect free.