From ee6f3304906b55e42e5ca6f11e284c75cab0f0ae Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Sat, 23 Nov 2019 08:16:33 -0800 Subject: [PATCH] Experiment: Consider calls to have no non-local effects --- src/compiler/binder.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/binder.ts b/src/compiler/binder.ts index 3a625ba3219..f60d4ce6c66 100644 --- a/src/compiler/binder.ts +++ b/src/compiler/binder.ts @@ -1346,7 +1346,7 @@ namespace ts { const call = node.expression; if (isDottedName(call.expression)) { currentFlow = createFlowCall(currentFlow, call); - hasNonLocalEffect = true; + // Experiment: hasNonLocalEffect = true; } } }