Skip to content

Commit effd9e9

Browse files
committed
Bug 2002191 - Align indirect and direct module namespace re-exports r=jonco
This patch implements tc39/ecma262#3715, to make import * as ns from "mod"; export { ns }; behave the same as export * as ns from "mod"; Tested by tc39/test262#4606 Differential Revision: https://phabricator.services.mozilla.com/D274013 UltraBlame original commit: d14a908552e6d040c7538351430b3152a4a36887
1 parent ebb4d6d commit effd9e9

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

js/src/builtin/ModuleObject.cpp

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9338,16 +9338,42 @@ importEntry
93389338
importName
93399339
)
93409340
{
9341+
auto
9342+
entry
9343+
=
9344+
frontend
9345+
:
9346+
:
9347+
StencilModuleEntry
9348+
:
9349+
:
9350+
exportNamespaceFromEntry
9351+
(
9352+
importEntry
9353+
-
9354+
>
9355+
moduleRequest
9356+
exp
9357+
.
9358+
exportName
9359+
exp
9360+
.
9361+
lineno
9362+
exp
9363+
.
9364+
column
9365+
)
9366+
;
93419367
if
93429368
(
93439369
!
93449370
metadata
93459371
.
9346-
localExportEntries
9372+
indirectExportEntries
93479373
.
93489374
append
93499375
(
9350-
exp
9376+
entry
93519377
)
93529378
)
93539379
{

0 commit comments

Comments
 (0)