get-possible-breakpoints-restrict-to-function-expected.txt 3.73 KB
Newer Older
1 2 3 4 5
Checks Debugger.getPossibleBreakpoints with ignoreNestedFunctions

Running test: testWholeFunction

function test() {
6
  |_|Array.|C|from([1,2]).|C|map(() => |_|1|R|).|C|filter(() => |_|true|R|);
7
  function nested1() {
8 9
    |_|Array.|C|from([1,2]).|C|map(() => |_|1|R|).|C|filter(() => |_|true|R|);
  |R|}
10
  function nested2() {
11 12 13 14 15 16
    |_|Array.|C|from([1,2]).|C|map(() => |_|1|R|).|C|filter(() => |_|true|R|);
  |R|}
  |C|nested1();
  |C|nested2();
|R|}

17 18 19 20

Running test: testWholeFunctionWithoutNested

function test() {
21
  |_|Array.|C|from([1,2]).|C|map(() => |_|1|R|).|C|filter(() => |_|true|R|);
22
  function nested1() {
23 24
    |_|Array.|C|from([1,2]).|C|map(() => |_|1|R|).|C|filter(() => |_|true|R|);
  |R|}
25
  function nested2() {
26 27 28 29 30 31
    |_|Array.|C|from([1,2]).|C|map(() => |_|1|R|).|C|filter(() => |_|true|R|);
  |R|}
  |C|nested1();
  |C|nested2();
|R|}

32 33 34 35

Running test: testPartOfFunctionWithoutNested

function test() {
36
  |_|Array.|C|from([1,2]).map(() => 1).filter(() => true);
37 38 39 40 41 42 43 44 45
  function nested1() {
    Array.from([1,2]).map(() => 1).filter(() => true);
  }
  function nested2() {
    Array.from([1,2]).map(() => 1).filter(() => true);
  }
  nested1();
  nested2();
}
46

47 48 49 50 51 52

Running test: testNestedFunction

function test() {
  Array.from([1,2]).map(() => 1).filter(() => true);
  function nested1() {
53 54
    |_|Array.|C|from([1,2]).|C|map(() => |_|1|R|).|C|filter(() => |_|true|R|);
  |R|}
55
  function nested2() {
56 57 58 59 60
    |_|Array.|C|from([1,2]).|C|map(() => |_|1|R|).|C|filter(() => |_|true|R|);
  |R|}
  |C|nested1();
  |C|nested2();
|R|}
61

62
Run test() to check breakpoints..
63
  }
64
  #nested1();
65 66 67
  nested2();

  function nested1() {
68
    #Array.from([1,2]).map(() => 1).filter(() => true);
69 70 71
  }

  function nested1() {
72
    Array.#from([1,2]).map(() => 1).filter(() => true);
73 74 75
  }

  function nested1() {
76
    Array.from([1,2]).#map(() => 1).filter(() => true);
77 78 79
  }

  function nested1() {
80
    Array.from([1,2]).map(() => #1).filter(() => true);
81 82 83
  }

  function nested1() {
84
    Array.from([1,2]).map(() => 1#).filter(() => true);
85 86 87
  }

  function nested1() {
88
    Array.from([1,2]).map(() => #1).filter(() => true);
89 90 91
  }

  function nested1() {
92
    Array.from([1,2]).map(() => 1#).filter(() => true);
93 94 95
  }

  function nested1() {
96
    Array.from([1,2]).map(() => 1).#filter(() => true);
97 98 99
  }

  function nested1() {
100
    Array.from([1,2]).map(() => 1).filter(() => #true);
101 102 103
  }

  function nested1() {
104
    Array.from([1,2]).map(() => 1).filter(() => true#);
105 106 107
  }

  function nested1() {
108
    Array.from([1,2]).map(() => 1).filter(() => #true);
109 110 111
  }

  function nested1() {
112
    Array.from([1,2]).map(() => 1).filter(() => true#);
113 114 115
  }

    Array.from([1,2]).map(() => 1).filter(() => true);
116
  #}
117 118 119
  function nested2() {

  nested1();
120
  #nested2();
121 122 123
}

  function nested2() {
124
    #Array.from([1,2]).map(() => 1).filter(() => true);
125 126 127
  }

  function nested2() {
128
    Array.#from([1,2]).map(() => 1).filter(() => true);
129 130 131
  }

  function nested2() {
132
    Array.from([1,2]).#map(() => 1).filter(() => true);
133 134 135
  }

  function nested2() {
136
    Array.from([1,2]).map(() => #1).filter(() => true);
137 138 139
  }

  function nested2() {
140
    Array.from([1,2]).map(() => 1#).filter(() => true);
141 142 143
  }

  function nested2() {
144
    Array.from([1,2]).map(() => #1).filter(() => true);
145 146 147
  }

  function nested2() {
148
    Array.from([1,2]).map(() => 1#).filter(() => true);
149 150 151
  }

  function nested2() {
152
    Array.from([1,2]).map(() => 1).#filter(() => true);
153 154 155
  }

  function nested2() {
156
    Array.from([1,2]).map(() => 1).filter(() => #true);
157 158 159
  }

  function nested2() {
160
    Array.from([1,2]).map(() => 1).filter(() => true#);
161 162 163
  }

  function nested2() {
164
    Array.from([1,2]).map(() => 1).filter(() => #true);
165 166 167
  }

  function nested2() {
168
    Array.from([1,2]).map(() => 1).filter(() => true#);
169 170 171
  }

    Array.from([1,2]).map(() => 1).filter(() => true);
172
  #}
173 174 175
  nested1();

  nested2();
176
#}
177