Skip to content

Commit c646971

Browse files
committed
Accept new baselines
1 parent 4ba50aa commit c646971

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

tests/baselines/reference/largeControlFlowGraph.errors.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
tests/cases/compiler/largeControlFlowGraph.ts(5003,1): error TS2563: The body of the containing function or module is too large for control flow analysis.
1+
tests/cases/compiler/largeControlFlowGraph.ts(3,1): error TS2563: The containing function or module body is too large for control flow analysis.
22

33

44
==== tests/cases/compiler/largeControlFlowGraph.ts (1 errors) ====
55
// The control flow graph for the following statement block is 10000 nodes deep. Check that
66
// we gracefully handle this, possibly by issuing an error.
77
const data = [];
8+
~~~~~
9+
!!! error TS2563: The containing function or module body is too large for control flow analysis.
810
data[0] = 0;
911
data[0] = 0;
1012
data[0] = 0;
@@ -5005,8 +5007,6 @@ tests/cases/compiler/largeControlFlowGraph.ts(5003,1): error TS2563: The body of
50055007
data[0] = 0;
50065008
data[0] = 0;
50075009
data[0] = 0;
5008-
~~~~
5009-
!!! error TS2563: The body of the containing function or module is too large for control flow analysis.
50105010
data[0] = 0;
50115011
data[0] = 0;
50125012
data[0] = 0;

tests/baselines/reference/largeControlFlowGraph.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10005,6 +10005,7 @@ data[0] = 0;
1000510005

1000610006

1000710007
//// [largeControlFlowGraph.js]
10008+
"use strict";
1000810009
// The control flow graph for the following statement block is 10000 nodes deep. Check that
1000910010
// we gracefully handle this, possibly by issuing an error.
1001010011
var data = [];

0 commit comments

Comments
 (0)