Skip to content

Commit

Permalink
Fix a crash that occurs when switching to doing module rewriting afte…
Browse files Browse the repository at this point in the history
…r type checking.

PiperOrigin-RevId: 705609288
  • Loading branch information
concavelenz authored and copybara-github committed Dec 12, 2024
1 parent 093f1e6 commit ffa350b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/google/javascript/jscomp/ClosureRewriteModule.java
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,7 @@ private void maybeUpdateExportDeclaration(NodeTraversal t, Node n) {
if (currentScript.declareLegacyNamespace) {
Node legacyQname =
this.astFactory
.createQName(this.globalTypedScope, currentScript.namespaceId)
.createQNameUsingJSTypeInfo(this.globalTypedScope, currentScript.namespaceId)
.srcrefTree(n);
legacyQname.setJSType(n.getJSType());
n.replaceWith(legacyQname);
Expand Down

0 comments on commit ffa350b

Please sign in to comment.