Commit 5fc917b
Fixes broken emit with useDefineForClassFields + private field (microsoft#35898)
* Fixes broken emit with useDefineForClassFields + private field
* use simpler function for condition1 parent 66b5c47 commit 5fc917bCopy full SHA for 5fc917b
8 files changed
+109-49Lines changed: 109 additions & 49 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- src/compiler/transformers
- tests
- baselines/reference
- cases/conformance/classes/propertyMemberDeclarations
Expand file treeCollapse file tree
Open diff view settings
Collapse file
src/compiler/transformers/classFields.ts
Copy file name to clipboardExpand all lines: src/compiler/transformers/classFields.ts+2-1Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
777 | 777 | |
778 | 778 | |
779 | 779 | |
| 780 | + |
780 | 781 | |
781 | | - |
| 782 | + |
782 | 783 | |
783 | 784 | |
784 | 785 | |
|
Collapse file
tests/baselines/reference/defineProperty(target=es5).js
Copy file name to clipboardExpand all lines: tests/baselines/reference/defineProperty(target=es5).js+15Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
6 | 7 | |
7 | 8 | |
8 | 9 | |
| ||
11 | 12 | |
12 | 13 | |
13 | 14 | |
| 15 | + |
14 | 16 | |
15 | 17 | |
| 18 | + |
16 | 19 | |
17 | 20 | |
18 | 21 | |
| ||
57 | 60 | |
58 | 61 | |
59 | 62 | |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
60 | 69 | |
61 | 70 | |
62 | 71 | |
| ||
87 | 96 | |
88 | 97 | |
89 | 98 | |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
90 | 105 | |
91 | 106 | |
92 | 107 | |
|
Collapse file
tests/baselines/reference/defineProperty(target=es5).symbols
Copy file name to clipboardExpand all lines: tests/baselines/reference/defineProperty(target=es5).symbols+33-24Lines changed: 33 additions & 24 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | | - |
| 10 | + |
11 | 11 | |
12 | | - |
| 12 | + |
13 | 13 | |
14 | 14 | |
15 | 15 | |
16 | 16 | |
| 17 | + |
| 18 | + |
| 19 | + |
17 | 20 | |
18 | | - |
19 | | - |
| 21 | + |
| 22 | + |
20 | 23 | |
21 | 24 | |
22 | | - |
| 25 | + |
23 | 26 | |
24 | 27 | |
25 | 28 | |
26 | | - |
| 29 | + |
27 | 30 | |
28 | 31 | |
29 | | - |
| 32 | + |
30 | 33 | |
31 | 34 | |
32 | | - |
33 | | - |
| 35 | + |
| 36 | + |
34 | 37 | |
35 | | - |
| 38 | + |
36 | 39 | |
37 | 40 | |
38 | | - |
| 41 | + |
39 | 42 | |
40 | 43 | |
41 | | - |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
42 | 48 | |
43 | 49 | |
44 | | - |
45 | | - |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
46 | 55 | |
47 | 56 | |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
52 | 61 | |
53 | 62 | |
54 | | - |
| 63 | + |
55 | 64 | |
56 | 65 | |
57 | | - |
| 66 | + |
58 | 67 | |
59 | 68 | |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
64 | 73 | |
65 | 74 | |
Collapse file
tests/baselines/reference/defineProperty(target=es5).types
Copy file name to clipboardExpand all lines: tests/baselines/reference/defineProperty(target=es5).types+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
| 18 | + |
| 19 | + |
| 20 | + |
18 | 21 | |
19 | 22 | |
20 | 23 | |
| ||
42 | 45 | |
43 | 46 | |
44 | 47 | |
| 48 | + |
| 49 | + |
| 50 | + |
45 | 51 | |
46 | 52 | |
47 | 53 | |
48 | 54 | |
49 | 55 | |
| 56 | + |
| 57 | + |
| 58 | + |
50 | 59 | |
51 | 60 | |
52 | 61 | |
|
Collapse file
tests/baselines/reference/defineProperty(target=esnext).js
Copy file name to clipboardExpand all lines: tests/baselines/reference/defineProperty(target=esnext).js+5Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
| 6 | + |
6 | 7 | |
7 | 8 | |
8 | 9 | |
| ||
11 | 12 | |
12 | 13 | |
13 | 14 | |
| 15 | + |
14 | 16 | |
15 | 17 | |
| 18 | + |
16 | 19 | |
17 | 20 | |
18 | 21 | |
| ||
27 | 30 | |
28 | 31 | |
29 | 32 | |
| 33 | + |
30 | 34 | |
31 | 35 | |
32 | 36 | |
| ||
36 | 40 | |
37 | 41 | |
38 | 42 | |
| 43 | + |
39 | 44 | |
40 | 45 | |
41 | 46 | |
|
Collapse file
tests/baselines/reference/defineProperty(target=esnext).symbols
Copy file name to clipboardExpand all lines: tests/baselines/reference/defineProperty(target=esnext).symbols+33-24Lines changed: 33 additions & 24 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
7 | 7 | |
8 | 8 | |
9 | 9 | |
10 | | - |
| 10 | + |
11 | 11 | |
12 | | - |
| 12 | + |
13 | 13 | |
14 | 14 | |
15 | 15 | |
16 | 16 | |
| 17 | + |
| 18 | + |
| 19 | + |
17 | 20 | |
18 | | - |
19 | | - |
| 21 | + |
| 22 | + |
20 | 23 | |
21 | 24 | |
22 | | - |
| 25 | + |
23 | 26 | |
24 | 27 | |
25 | 28 | |
26 | | - |
| 29 | + |
27 | 30 | |
28 | 31 | |
29 | | - |
| 32 | + |
30 | 33 | |
31 | 34 | |
32 | | - |
33 | | - |
| 35 | + |
| 36 | + |
34 | 37 | |
35 | | - |
| 38 | + |
36 | 39 | |
37 | 40 | |
38 | | - |
| 41 | + |
39 | 42 | |
40 | 43 | |
41 | | - |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
42 | 48 | |
43 | 49 | |
44 | | - |
45 | | - |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
46 | 55 | |
47 | 56 | |
48 | | - |
49 | | - |
50 | | - |
51 | | - |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
52 | 61 | |
53 | 62 | |
54 | | - |
| 63 | + |
55 | 64 | |
56 | 65 | |
57 | | - |
| 66 | + |
58 | 67 | |
59 | 68 | |
60 | | - |
61 | | - |
62 | | - |
63 | | - |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
64 | 73 | |
65 | 74 | |
Collapse file
tests/baselines/reference/defineProperty(target=esnext).types
Copy file name to clipboardExpand all lines: tests/baselines/reference/defineProperty(target=esnext).types+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
15 | 15 | |
16 | 16 | |
17 | 17 | |
| 18 | + |
| 19 | + |
| 20 | + |
18 | 21 | |
19 | 22 | |
20 | 23 | |
| ||
42 | 45 | |
43 | 46 | |
44 | 47 | |
| 48 | + |
| 49 | + |
| 50 | + |
45 | 51 | |
46 | 52 | |
47 | 53 | |
48 | 54 | |
49 | 55 | |
| 56 | + |
| 57 | + |
| 58 | + |
50 | 59 | |
51 | 60 | |
52 | 61 | |
|
Collapse file
tests/cases/conformance/classes/propertyMemberDeclarations/defineProperty.ts
Copy file name to clipboardExpand all lines: tests/cases/conformance/classes/propertyMemberDeclarations/defineProperty.ts+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
| 7 | + |
7 | 8 | |
8 | 9 | |
9 | 10 | |
| ||
12 | 13 | |
13 | 14 | |
14 | 15 | |
| 16 | + |
15 | 17 | |
16 | 18 | |
| 19 | + |
17 | 20 | |
18 | 21 | |
19 | 22 | |
|
0 commit comments