Skip to content

Commit

Permalink
Reverse order of decorator-injected initializers (#202)
Browse files Browse the repository at this point in the history
* Reverse order of decorator-injected initializers

* Bump patch version
  • Loading branch information
rbuckton authored May 17, 2023
1 parent eab3cff commit 91fcbd0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "tslib",
"author": "Microsoft Corp.",
"homepage": "https://www.typescriptlang.org/",
"version": "2.5.0",
"version": "2.5.1",
"license": "0BSD",
"description": "Runtime library for TypeScript helper functions",
"keywords": [
Expand Down
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 91fcbd0

Please sign in to comment.