From c646971cecfe27235c0b07e3bb9d7f868fc0c7f9 Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Fri, 8 Sep 2017 15:52:02 -0700 Subject: [PATCH] Accept new baselines --- tests/baselines/reference/largeControlFlowGraph.errors.txt | 6 +++--- tests/baselines/reference/largeControlFlowGraph.js | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/baselines/reference/largeControlFlowGraph.errors.txt b/tests/baselines/reference/largeControlFlowGraph.errors.txt index f9dad52c79f..23095c25f74 100644 --- a/tests/baselines/reference/largeControlFlowGraph.errors.txt +++ b/tests/baselines/reference/largeControlFlowGraph.errors.txt @@ -1,10 +1,12 @@ -tests/cases/compiler/largeControlFlowGraph.ts(5003,1): error TS2563: The body of the containing function or module is too large for control flow analysis. +tests/cases/compiler/largeControlFlowGraph.ts(3,1): error TS2563: The containing function or module body is too large for control flow analysis. ==== tests/cases/compiler/largeControlFlowGraph.ts (1 errors) ==== // The control flow graph for the following statement block is 10000 nodes deep. Check that // we gracefully handle this, possibly by issuing an error. const data = []; + ~~~~~ +!!! error TS2563: The containing function or module body is too large for control flow analysis. data[0] = 0; data[0] = 0; data[0] = 0; @@ -5005,8 +5007,6 @@ tests/cases/compiler/largeControlFlowGraph.ts(5003,1): error TS2563: The body of data[0] = 0; data[0] = 0; data[0] = 0; - ~~~~ -!!! error TS2563: The body of the containing function or module is too large for control flow analysis. data[0] = 0; data[0] = 0; data[0] = 0; diff --git a/tests/baselines/reference/largeControlFlowGraph.js b/tests/baselines/reference/largeControlFlowGraph.js index ee1edbe8984..6476cbc11d2 100644 --- a/tests/baselines/reference/largeControlFlowGraph.js +++ b/tests/baselines/reference/largeControlFlowGraph.js @@ -10005,6 +10005,7 @@ data[0] = 0; //// [largeControlFlowGraph.js] +"use strict"; // The control flow graph for the following statement block is 10000 nodes deep. Check that // we gracefully handle this, possibly by issuing an error. var data = [];