Skip to content

Commit 14e05cd

Browse files
committed
Fix condition in onSubstituteNode
1 parent 40d08df commit 14e05cd

File tree

1 file changed

+1
-1
lines changed
  • src/compiler/transformers

1 file changed

+1
-1
lines changed

src/compiler/transformers/es5.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ namespace ts {
6363
* @param node The node to substitute.
6464
*/
6565
function onSubstituteNode(emitContext: EmitContext, node: Node) {
66-
if (node.id && noSubstitution[node.id]) {
66+
if (node.id && noSubstitution && noSubstitution[node.id]) {
6767
return previousOnSubstituteNode(emitContext, node);
6868
}
6969

0 commit comments

Comments
 (0)