Repository navigation
Commit e42e1b3
committed
fix: remove redundant module-scope check for Intl alias locale detection
The resolveScope(scope, ...) === moduleScope guard in the module-formatter
path compared the *local* alias's declaring scope to moduleScope, so a
local const alias of a module-level implicit Intl formatter (e.g.
`const f = fmt`) would skip the OCTANE_STRONG_RENDER_LOCALE_FORMAT
diagnostic.
aliasValue() already follows unreassigned const aliases through the scope
chain to recover the original Intl service value, and recordDeclaration
already drops reassigned let bindings via isReassigned. The extra scope
check was therefore both redundant and harmful—inconsistent with the
crypto path that trusts aliasValue alone.1 parent a39d43d commit e42e1b3
1 file changed
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
| 251 | + | |
256 | 252 | | |
257 | 253 | | |
258 | 254 | | |
| |||
0 commit comments