code: private void exportTheEmptyBinaryNamespaceAt(Node atNode, AddAt addAt) {
      if (currentScript.declareLegacyNamespace) {
        return;
      }
  
      Node binaryNamespaceName = IR.name(currentScript.getBinaryNamespace());
      binaryNamespaceName.setOriginalName(currentScript.legacyNamespace);
      Node binaryNamespaceExportNode = IR.var(binaryNamespaceName, IR.objectlit());
      if (addAt == AddAt.BEFORE) {
        atNode.getParent().addChildBefore(binaryNamespaceExportNode, atNode);
      } else if (addAt == AddAt.AFTER) {
        atNode.getParent().addChildAfter(binaryNamespaceExportNode, atNode);
      }
      binaryNamespaceExportNode.putBooleanProp(Node.IS_NAMESPACE, true);
      binaryNamespaceExportNode.srcrefTree(atNode);
      markConst(binaryNamespaceExportNode);
      compiler.reportChangeToEnclosingScope(binaryNamespaceExportNode);
      currentScript.hasCreatedExportObject = true;
    }
docs: Add the missing "var module$exports$pkg$Foo = {};" line.