Skip to content

Commit

Permalink
Reverse order of decorator-injected initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuckton committed May 17, 2023
1 parent eab3cff commit 2420878
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tslib.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ export function __esDecorate(ctor, descriptorIn, decorators, contextIn, initiali
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] = _;
}
}
Expand Down
4 changes: 2 additions & 2 deletions tslib.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,10 @@ var __createBinding;
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] = _;
}
}
Expand Down

0 comments on commit 2420878

Please sign in to comment.