OLD | NEW |
1 Verify javascript outline | 1 Verify javascript outline |
2 | 2 |
3 | 3 |
4 Running: testAsyncFunction | 4 Running: testAsyncFunction |
5 Text: | 5 Text: |
6 async function foo() { } | 6 async function foo() { } |
7 Outline: | 7 Outline: |
8 foo():0:15 | 8 async foo():0:15 |
| 9 |
| 10 Running: testAsyncArrowFunction |
| 11 Text: |
| 12 var sum = async (x, y) => x + y; |
| 13 Outline: |
| 14 async sum(x, y):0:4 |
9 | 15 |
10 Running: testGeneratorFunction | 16 Running: testGeneratorFunction |
11 Text: | 17 Text: |
12 function* foo() { } | 18 function* foo() { } |
13 Outline: | 19 Outline: |
| 20 *foo():0:10 |
14 | 21 |
15 Running: testMismatchBrackets | 22 Running: testMismatchBrackets |
16 Text: | 23 Text: |
17 | 24 |
18 function foo(a, b) { | 25 function foo(a, b) { |
19 if (a > b) { | 26 if (a > b) { |
20 return a; | 27 return a; |
21 } | 28 } |
22 | 29 |
23 function bar(eee) { | 30 function bar(eee) { |
24 foo(eee, 2 * eee); | 31 foo(eee, 2 * eee); |
25 } | 32 } |
26 | 33 |
27 Outline: | 34 Outline: |
28 foo(a, b):1:9 | 35 foo(a, b):1:9 |
29 bar(eee):6:9 | 36 bar(eee):6:9 |
30 | 37 |
31 Running: testSyntaxError | 38 Running: testSyntaxError |
32 Text: | 39 Text: |
33 | 40 |
34 function notAGenerator(a, b) { | 41 function notAGenerator(a, b) { |
35 yield 10; | 42 yield 10; |
36 } | 43 } |
37 Outline: | 44 Outline: |
38 notAGenerator(a, b):1:9 | 45 notAGenerator(a, b):1:9 |
39 | 46 |
OLD | NEW |