Commit 986f2d5
Make the scope bag an object instead of an array
Now that the scope bag is a `Record<string, unknown>`, the lexical symbol
names are always carried alongside their values. This eliminates the need
for the `lexicalSymbols` slot in the wire format block (previously only
available when `debugSymbols` was enabled) and allows `meta()` to derive
`lexical` names and `scopeValues` directly from the scope object's keys
and values.
See also: upstream PR #21224, PR #21068.
Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>1 parent 468a145 commit 986f2d5
4 files changed
Lines changed: 4 additions & 13 deletions
File tree
- packages
- @glimmer-workspace/integration-tests/lib
- @glimmer
- compiler/lib
- interfaces/lib/compile/wire-format
- opcode-compiler/lib/opcode-builder/helpers
Lines changed: 0 additions & 7 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 | | |
| |||
29 | 27 | | |
30 | 28 | | |
31 | 29 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 30 | | |
37 | | - | |
38 | 31 | | |
39 | 32 | | |
40 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
| 126 | + | |
| 127 | + | |
129 | 128 | | |
130 | 129 | | |
131 | 130 | | |
| |||
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | | - | |
377 | 376 | | |
378 | 377 | | |
379 | 378 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
0 commit comments