mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Reverse order of decorator-injected initializers (#54269)
This commit is contained in:
1 parent
dddd0667f0
commit
b14264a2eb
11 files changed
+58
-28
No files matched your search
@@ -761,10 +761,10 @@ export const esDecorateHelper: UnscopedEmitHelper = {
|
||||
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
||||
if (_ = accept(result.get)) descriptor.get = _;
|
||||
if (_ = accept(result.set)) descriptor.set = _;
|
||||
if (_ = accept(result.init)) initializers.push(_);
|
||||
if (_ = accept(result.init)) initializers.unshift(_);
|
||||
}
|
||||
else if (_ = accept(result)) {
|
||||
if (kind === "field") initializers.push(_);
|
||||
if (kind === "field") initializers.unshift(_);
|
||||
else descriptor[key] = _;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user