Skip to content

Commit 9ecbe27

Browse files
fix(parser): keep the fake namespace mode argument a constant
1 parent 2c2b773 commit 9ecbe27

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/RuntimeTemplate.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2539,7 +2539,7 @@ class RuntimeTemplate {
25392539
)
25402540
);
25412541
const fakeMode = exportsType === "default-only" ? 0 : 2;
2542-
const fakeArguments = fakeMode === 0 ? "" : `, ${fakeMode}`;
2542+
const fakeArguments = fakeMode === 0 ? "" : ", 2";
25432543
let fakeNamespace = `${RuntimeGlobals.createFakeNamespaceObject}(${importVar}${fakeArguments})`;
25442544
if (synthesizesSpecNamespaceObject(originModule)) {
25452545
runtimeRequirements.add(RuntimeGlobals.specNamespaceObject);

0 commit comments

Comments
 (0)