diff --git a/package.json b/package.json index 1481574..8009be6 100644 --- a/package.json +++ b/package.json @@ -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": [ diff --git a/tslib.es6.js b/tslib.es6.js index 1acdae0..85f4b7c 100644 --- a/tslib.es6.js +++ b/tslib.es6.js @@ -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] = _; } } diff --git a/tslib.js b/tslib.js index 0f0e892..0505ac6 100644 --- a/tslib.js +++ b/tslib.js @@ -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] = _; } }