mirror of
https://github.com/oxc-project/oxc.git
synced 2026-11-04 10:29:58 +00:00
fix(transformer/decorator): scope accessor class binding (#24330)
This commit is contained in:
1 parent
5a9721aa8f
commit
721eb0ba2b
2 files changed
+2
-8
No files matched your search
@@ -339,7 +339,7 @@ impl<'a> LegacyDecorator<'a> {
|
||||
Some(if let Some(ident) = class.id.as_ref() {
|
||||
BoundIdentifier::from_binding_ident(ident)
|
||||
} else {
|
||||
ctx.generate_uid_in_current_scope("class", SymbolFlags::Class)
|
||||
ctx.generate_uid("class", class.scope_id(), SymbolFlags::Class)
|
||||
})
|
||||
} else {
|
||||
None
|
||||
|
||||
@@ -4188,20 +4188,14 @@ Namespaces exporting non-const are not supported by Oxc. Change to const or see:
|
||||
|
||||
semantic Error: tasks/coverage/typescript/tests/cases/compiler/esDecoratorsClassFieldsCrash.ts
|
||||
Bindings mismatch:
|
||||
after transform: ScopeId(0): ["Foo", "_accessor_accessor_storage", "_accessor_accessor_storage2", "_assertClassBrand", "_class", "_class2", "_classPrivateFieldInitSpec", "_decorateMetadata", "_defineProperty", "dec"]
|
||||
after transform: ScopeId(0): ["Foo", "_accessor_accessor_storage", "_accessor_accessor_storage2", "_assertClassBrand", "_class2", "_classPrivateFieldInitSpec", "_decorateMetadata", "_defineProperty", "dec"]
|
||||
rebuilt : ScopeId(0): ["Foo", "_accessor_accessor_storage2", "_assertClassBrand", "_class2", "_classPrivateFieldInitSpec", "_decorateMetadata", "_defineProperty", "dec"]
|
||||
Bindings mismatch:
|
||||
after transform: ScopeId(3): []
|
||||
rebuilt : ScopeId(3): ["_class"]
|
||||
Symbol reference IDs mismatch for "_decorateMetadata":
|
||||
after transform: SymbolId(16): [ReferenceId(12), ReferenceId(13), ReferenceId(14), ReferenceId(15), ReferenceId(22), ReferenceId(23)]
|
||||
rebuilt : SymbolId(2): []
|
||||
Symbol reference IDs mismatch for "dec":
|
||||
after transform: SymbolId(0): [ReferenceId(1), ReferenceId(2), ReferenceId(3), ReferenceId(4)]
|
||||
rebuilt : SymbolId(6): []
|
||||
Symbol scope ID mismatch for "_class":
|
||||
after transform: SymbolId(8): ScopeId(0)
|
||||
rebuilt : SymbolId(14): ScopeId(3)
|
||||
|
||||
semantic Error: tasks/coverage/typescript/tests/cases/compiler/expandoFunctionNestedAssigmentsDeclared.ts
|
||||
Symbol flags mismatch for "Foo":
|
||||
|
||||
Reference in new issue
Block a user