1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
function hey() {
const well = {
baz: function () {},
};
}
function yo() {
const hi = {
yo: function () {},
};
}
// function yo() {
// const hi = {
// yo: function () {},
// };
// }
// This bug is the same as function-scope-bug.jsx, except this time,
// it's specific to scopes created in property definitions
// That means, either arrow functions or non-arrow functions
// ESBUILD
// Scope: (5 -1) | Scope (5, -100)
// Scope: (6 12) | Scope (6, 12)
// Scope: (7 15) | Scope (7, 15)
// Scope: (6 43) | Scope (6, 43)
// Scope: (7 55) | Scope (7, 55)
// Scope: (6 78) | Scope (6, 78)
// Scope: (7 81) | Scope (7, 81)
// Scope (6, 106)
// Scope (7, 118)
// Scope: (5 -1) | Scope (5, -100)
// Scope: (6 12) | Scope (6, 12)
// Scope: (7 15) | Scope (7, 15)
// Scope: (6 43) | Scope (6, 43)
// Scope: (7 55) | Scope (7, 55)
// Scope: (6 78) | Scope (6, 78)
// Scope: (7 81) | Scope (7, 81)
// Scope: (6 106) | Scope (6, 106)
// Scope: (7 118) | Scope (7, 118)
// ESBUILD
// Scope: (5 -1)
// Scope: (6 12)
// Scope: (7 15)
// Scope: (6 43)
// Scope: (7 55)
// Scope: (6 78)
// Scope: (7 81)
// Scope: (6 106)
// Scope: (7 118)
// Scope: (6 141)
// Scope: (7 144)
// Scope: (6 169)
// Scope: (7 181)
|