archives

« Bugzilla Issues Index

#4246 — 15.2.1.15.3 ResolveExport: overzealous assert for ambiguous StarExport resolution


In step 10.f.ii of ResolveExport, the following Assert appears:

"Assert: there is more than one * import that includes the requested name."

yet it not until the next step (10.f.iii) that we discover whether or not the assertion holds:

"If resolution.[[module]] and starResolution.[[module]] are not the same Module Record or SameValue(resolution.[[exportName]], starResolution.[[exportName]]) is false, return 'ambiguous'."

At this point, it's entirely possible that resolution === starResolution.


I think the Asset will be fine, i9f I just move 10.f.11 and iii into an else clause for 10.f.i

The current assert is really only confusing immediately after the first resolution is found


Yes, I agree that that fix will work.


fixed in rev37 editor's draft


In Rev37