diff --git a/tests/baselines/reference/objectBindingPattern_restElementWithPropertyName.js b/tests/baselines/reference/objectBindingPattern_restElementWithPropertyName.js index fa92c7409c0a4..580dc2b606fb4 100644 --- a/tests/baselines/reference/objectBindingPattern_restElementWithPropertyName.js +++ b/tests/baselines/reference/objectBindingPattern_restElementWithPropertyName.js @@ -9,7 +9,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; diff --git a/tests/baselines/reference/parameterInitializerBeforeDestructuringEmit.js b/tests/baselines/reference/parameterInitializerBeforeDestructuringEmit.js index ffee9029d30ed..294b76e1335db 100644 --- a/tests/baselines/reference/parameterInitializerBeforeDestructuringEmit.js +++ b/tests/baselines/reference/parameterInitializerBeforeDestructuringEmit.js @@ -27,7 +27,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; diff --git a/tests/baselines/reference/restIntersection.js b/tests/baselines/reference/restIntersection.js index b225b1328809b..8fc9be83d1402 100644 --- a/tests/baselines/reference/restIntersection.js +++ b/tests/baselines/reference/restIntersection.js @@ -12,7 +12,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; diff --git a/tests/baselines/reference/restInvalidArgumentType.js b/tests/baselines/reference/restInvalidArgumentType.js index a591da4a92936..b28c69226f093 100644 --- a/tests/baselines/reference/restInvalidArgumentType.js +++ b/tests/baselines/reference/restInvalidArgumentType.js @@ -62,7 +62,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; diff --git a/tests/baselines/reference/restParameterWithBindingPattern3.js b/tests/baselines/reference/restParameterWithBindingPattern3.js index 87652a5302ce7..9f52594f7cb0d 100644 --- a/tests/baselines/reference/restParameterWithBindingPattern3.js +++ b/tests/baselines/reference/restParameterWithBindingPattern3.js @@ -16,7 +16,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; diff --git a/tests/baselines/reference/restUnion.js b/tests/baselines/reference/restUnion.js index 80d522811733f..14f0c65acbcb2 100644 --- a/tests/baselines/reference/restUnion.js +++ b/tests/baselines/reference/restUnion.js @@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; diff --git a/tests/baselines/reference/restUnion2.js b/tests/baselines/reference/restUnion2.js index 21ae81b3381a3..4506e85b2205a 100644 --- a/tests/baselines/reference/restUnion2.js +++ b/tests/baselines/reference/restUnion2.js @@ -16,7 +16,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; diff --git a/tests/baselines/reference/restUnion3.js b/tests/baselines/reference/restUnion3.js index bbb60ae1dae66..69b1e74af8184 100644 --- a/tests/baselines/reference/restUnion3.js +++ b/tests/baselines/reference/restUnion3.js @@ -16,7 +16,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js index 34285f3359322..e71e158b6bcf0 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js @@ -25,7 +25,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -111,7 +111,7 @@ sourceFile:../lib/file0.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -614,26 +614,26 @@ sourceFile:file4.ts }, { "pos": 678, - "end": 1170, + "end": 1178, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 1172, - "end": 1927, + "pos": 1180, + "end": 1935, "kind": "prepend", "data": "/src/lib/module.js", "texts": [ { - "pos": 1172, - "end": 1927, + "pos": 1180, + "end": 1935, "kind": "text" } ] }, { - "pos": 1927, - "end": 2445, + "pos": 1935, + "end": 2453, "kind": "text" } ], @@ -699,22 +699,22 @@ var __spread = (this && this.__spread) || function () { return ar; }; ---------------------------------------------------------------------- -emitHelpers: (678-1170):: typescript:rest +emitHelpers: (678-1178):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -prepend: (1172-1927):: /src/lib/module.js texts:: 1 +prepend: (1180-1935):: /src/lib/module.js texts:: 1 >>-------------------------------------------------------------------- -text: (1172-1927) +text: (1180-1935) var myGlob = 20; function libfile0Spread() { var b = []; @@ -740,7 +740,7 @@ define("file2", ["require", "exports"], function (require, exports) { var globalConst = 10; ---------------------------------------------------------------------- -text: (1927-2445) +text: (1935-2453) define("file3", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -817,7 +817,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -887,7 +887,7 @@ sourceFile:file0.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -1194,13 +1194,13 @@ sourceFile:global.ts }, { "pos": 678, - "end": 1170, + "end": 1178, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 1172, - "end": 1927, + "pos": 1180, + "end": 1935, "kind": "text" } ], @@ -1253,20 +1253,20 @@ var __spread = (this && this.__spread) || function () { return ar; }; ---------------------------------------------------------------------- -emitHelpers: (678-1170):: typescript:rest +emitHelpers: (678-1178):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -text: (1172-1927) +text: (1180-1935) var myGlob = 20; function libfile0Spread() { var b = []; diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js index 6fe32f3b11e7f..dd4ab0b77fd59 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js @@ -25,7 +25,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -108,7 +108,7 @@ sourceFile:../lib/file0.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -553,26 +553,26 @@ sourceFile:file4.ts }, { "pos": 678, - "end": 1170, + "end": 1178, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 1172, - "end": 1813, + "pos": 1180, + "end": 1821, "kind": "prepend", "data": "/src/lib/module.js", "texts": [ { - "pos": 1172, - "end": 1813, + "pos": 1180, + "end": 1821, "kind": "text" } ] }, { - "pos": 1813, - "end": 2331, + "pos": 1821, + "end": 2339, "kind": "text" } ], @@ -638,22 +638,22 @@ var __spread = (this && this.__spread) || function () { return ar; }; ---------------------------------------------------------------------- -emitHelpers: (678-1170):: typescript:rest +emitHelpers: (678-1178):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -prepend: (1172-1813):: /src/lib/module.js texts:: 1 +prepend: (1180-1821):: /src/lib/module.js texts:: 1 >>-------------------------------------------------------------------- -text: (1172-1813) +text: (1180-1821) var myGlob = 20; function libfile0Spread() { var b = []; @@ -676,7 +676,7 @@ define("file2", ["require", "exports"], function (require, exports) { var globalConst = 10; ---------------------------------------------------------------------- -text: (1813-2331) +text: (1821-2339) define("file3", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js index d8a20bac2e8c8..52b1fff83030c 100644 --- a/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/amdModulesWithOut/initial-Build/multiple-emitHelpers-in-all-projects.js @@ -286,7 +286,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -371,7 +371,7 @@ sourceFile:../lib/file0.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -847,26 +847,26 @@ sourceFile:file4.ts }, { "pos": 678, - "end": 1170, + "end": 1178, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 1172, - "end": 1898, + "pos": 1180, + "end": 1906, "kind": "prepend", "data": "/src/lib/module.js", "texts": [ { - "pos": 1172, - "end": 1898, + "pos": 1180, + "end": 1906, "kind": "text" } ] }, { - "pos": 1898, - "end": 2416, + "pos": 1906, + "end": 2424, "kind": "text" } ], @@ -932,22 +932,22 @@ var __spread = (this && this.__spread) || function () { return ar; }; ---------------------------------------------------------------------- -emitHelpers: (678-1170):: typescript:rest +emitHelpers: (678-1178):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -prepend: (1172-1898):: /src/lib/module.js texts:: 1 +prepend: (1180-1906):: /src/lib/module.js texts:: 1 >>-------------------------------------------------------------------- -text: (1172-1898) +text: (1180-1906) var myGlob = 20; function libfile0Spread() { var b = []; @@ -972,7 +972,7 @@ define("file2", ["require", "exports"], function (require, exports) { var globalConst = 10; ---------------------------------------------------------------------- -text: (1898-2416) +text: (1906-2424) define("file3", ["require", "exports"], function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); @@ -1234,7 +1234,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -1303,7 +1303,7 @@ sourceFile:file0.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -1583,13 +1583,13 @@ sourceFile:global.ts }, { "pos": 678, - "end": 1170, + "end": 1178, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 1172, - "end": 1898, + "pos": 1180, + "end": 1906, "kind": "text" } ], @@ -1642,20 +1642,20 @@ var __spread = (this && this.__spread) || function () { return ar; }; ---------------------------------------------------------------------- -emitHelpers: (678-1170):: typescript:rest +emitHelpers: (678-1178):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -text: (1172-1898) +text: (1180-1906) var myGlob = 20; function libfile0Spread() { var b = []; diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js index fd3ea4a13901e..6271da6473a36 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-changes/emitHelpers-in-all-projects.js @@ -169,7 +169,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -205,7 +205,7 @@ sourceFile:../first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -406,13 +406,13 @@ sourceFile:../first_part3.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 720, + "pos": 502, + "end": 728, "kind": "text" } ], @@ -439,20 +439,20 @@ sourceFile:../first_part3.ts ====================================================================== File:: /src/first/bin/first-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -text: (494-720) +text: (502-728) var s = "Hola, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -824,7 +824,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -883,7 +883,7 @@ sourceFile:../../../first/first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -1480,39 +1480,39 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 720, + "pos": 502, + "end": 728, "kind": "prepend", "data": "/src/first/bin/first-output.js", "texts": [ { - "pos": 494, - "end": 720, + "pos": 502, + "end": 728, "kind": "text" } ] }, { - "pos": 720, - "end": 1124, + "pos": 728, + "end": 1132, "kind": "prepend", "data": "/src/2/second-output.js", "texts": [ { - "pos": 720, - "end": 1124, + "pos": 728, + "end": 1132, "kind": "text" } ] }, { - "pos": 1124, - "end": 1277, + "pos": 1132, + "end": 1285, "kind": "text" } ], @@ -1565,22 +1565,22 @@ sourceFile:../../third_part1.ts ====================================================================== File:: /src/third/thirdjs/output/third-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -prepend: (494-720):: /src/first/bin/first-output.js texts:: 1 +prepend: (502-728):: /src/first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (494-720) +text: (502-728) var s = "Hola, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1592,9 +1592,9 @@ function f() { } ---------------------------------------------------------------------- -prepend: (720-1124):: /src/2/second-output.js texts:: 1 +prepend: (728-1132):: /src/2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (720-1124) +text: (728-1132) var N; (function (N) { function f() { @@ -1615,7 +1615,7 @@ var C = (function () { }()); ---------------------------------------------------------------------- -text: (1124-1277) +text: (1132-1285) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js index 6792ddaa099a0..828d013c259b4 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-all-projects.js @@ -5,7 +5,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -42,7 +42,7 @@ sourceFile:../first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -270,13 +270,13 @@ sourceFile:../first_part3.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 738, + "pos": 502, + "end": 746, "kind": "text" } ], @@ -303,20 +303,20 @@ sourceFile:../first_part3.ts ====================================================================== File:: /src/first/bin/first-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -text: (494-738) +text: (502-746) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -368,7 +368,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -428,7 +428,7 @@ sourceFile:../../../first/first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -1052,39 +1052,39 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 738, + "pos": 502, + "end": 746, "kind": "prepend", "data": "/src/first/bin/first-output.js", "texts": [ { - "pos": 494, - "end": 738, + "pos": 502, + "end": 746, "kind": "text" } ] }, { - "pos": 738, - "end": 1142, + "pos": 746, + "end": 1150, "kind": "prepend", "data": "/src/2/second-output.js", "texts": [ { - "pos": 738, - "end": 1142, + "pos": 746, + "end": 1150, "kind": "text" } ] }, { - "pos": 1142, - "end": 1295, + "pos": 1150, + "end": 1303, "kind": "text" } ], @@ -1137,22 +1137,22 @@ sourceFile:../../third_part1.ts ====================================================================== File:: /src/third/thirdjs/output/third-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -prepend: (494-738):: /src/first/bin/first-output.js texts:: 1 +prepend: (502-746):: /src/first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (494-738) +text: (502-746) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1165,9 +1165,9 @@ function f() { } ---------------------------------------------------------------------- -prepend: (738-1142):: /src/2/second-output.js texts:: 1 +prepend: (746-1150):: /src/2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (738-1142) +text: (746-1150) var N; (function (N) { function f() { @@ -1188,7 +1188,7 @@ var C = (function () { }()); ---------------------------------------------------------------------- -text: (1142-1295) +text: (1150-1303) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js index d0e7ceca502a6..44e22ae289e7d 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/emitHelpers-in-only-one-dependency-project.js @@ -284,7 +284,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -339,7 +339,7 @@ sourceFile:../../../first/first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -881,39 +881,39 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 661, + "pos": 502, + "end": 669, "kind": "prepend", "data": "/src/first/bin/first-output.js", "texts": [ { - "pos": 494, - "end": 661, + "pos": 502, + "end": 669, "kind": "text" } ] }, { - "pos": 661, - "end": 1065, + "pos": 669, + "end": 1073, "kind": "prepend", "data": "/src/2/second-output.js", "texts": [ { - "pos": 661, - "end": 1065, + "pos": 669, + "end": 1073, "kind": "text" } ] }, { - "pos": 1065, - "end": 1101, + "pos": 1073, + "end": 1109, "kind": "text" } ] @@ -961,22 +961,22 @@ sourceFile:../../third_part1.ts ====================================================================== File:: /src/third/thirdjs/output/third-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -prepend: (494-661):: /src/first/bin/first-output.js texts:: 1 +prepend: (502-669):: /src/first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (494-661) +text: (502-669) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { } @@ -987,9 +987,9 @@ function f() { } ---------------------------------------------------------------------- -prepend: (661-1065):: /src/2/second-output.js texts:: 1 +prepend: (669-1073):: /src/2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (661-1065) +text: (669-1073) var N; (function (N) { function f() { @@ -1010,7 +1010,7 @@ var C = (function () { }()); ---------------------------------------------------------------------- -text: (1065-1101) +text: (1073-1109) var c = new C(); c.doSomething(); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js index c9159e1408b83..2efa78454c035 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-all-projects.js @@ -5,7 +5,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -69,7 +69,7 @@ sourceFile:../first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -412,25 +412,25 @@ sourceFile:../first_part3.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 998, + "pos": 502, + "end": 1006, "kind": "emitHelpers", "data": "typescript:read" }, { - "pos": 1000, - "end": 1170, + "pos": 1008, + "end": 1178, "kind": "emitHelpers", "data": "typescript:spread" }, { - "pos": 1172, - "end": 1628, + "pos": 1180, + "end": 1636, "kind": "text" } ], @@ -459,20 +459,20 @@ sourceFile:../first_part3.ts ====================================================================== File:: /src/first/bin/first-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -emitHelpers: (494-998):: typescript:read +emitHelpers: (502-1006):: typescript:read var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; @@ -490,13 +490,13 @@ var __read = (this && this.__read) || function (o, n) { return ar; }; ---------------------------------------------------------------------- -emitHelpers: (1000-1170):: typescript:spread +emitHelpers: (1008-1178):: typescript:spread var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; ---------------------------------------------------------------------- -text: (1172-1628) +text: (1180-1636) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -556,7 +556,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -657,7 +657,7 @@ sourceFile:../../../first/first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -1587,51 +1587,51 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 998, + "pos": 502, + "end": 1006, "kind": "emitHelpers", "data": "typescript:read" }, { - "pos": 1000, - "end": 1170, + "pos": 1008, + "end": 1178, "kind": "emitHelpers", "data": "typescript:spread" }, { - "pos": 1172, - "end": 1628, + "pos": 1180, + "end": 1636, "kind": "prepend", "data": "/src/first/bin/first-output.js", "texts": [ { - "pos": 1172, - "end": 1628, + "pos": 1180, + "end": 1636, "kind": "text" } ] }, { - "pos": 1628, - "end": 2248, + "pos": 1636, + "end": 2256, "kind": "prepend", "data": "/src/2/second-output.js", "texts": [ { - "pos": 1628, - "end": 2248, + "pos": 1636, + "end": 2256, "kind": "text" } ] }, { - "pos": 2248, - "end": 2613, + "pos": 2256, + "end": 2621, "kind": "text" } ], @@ -1686,20 +1686,20 @@ sourceFile:../../third_part1.ts ====================================================================== File:: /src/third/thirdjs/output/third-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -emitHelpers: (494-998):: typescript:read +emitHelpers: (502-1006):: typescript:read var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; @@ -1717,15 +1717,15 @@ var __read = (this && this.__read) || function (o, n) { return ar; }; ---------------------------------------------------------------------- -emitHelpers: (1000-1170):: typescript:spread +emitHelpers: (1008-1178):: typescript:spread var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; ---------------------------------------------------------------------- -prepend: (1172-1628):: /src/first/bin/first-output.js texts:: 1 +prepend: (1180-1636):: /src/first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1172-1628) +text: (1180-1636) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1745,9 +1745,9 @@ function firstfirst_part3Spread() { firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); ---------------------------------------------------------------------- -prepend: (1628-2248):: /src/2/second-output.js texts:: 1 +prepend: (1636-2256):: /src/2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1628-2248) +text: (1636-2256) var N; (function (N) { function f() { @@ -1775,7 +1775,7 @@ function secondsecond_part2Spread() { secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); ---------------------------------------------------------------------- -text: (2248-2613) +text: (2256-2621) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js index 740d1baffcdcd..fc441e6a91904 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-declaration-doesnt-change/multiple-emitHelpers-in-different-projects.js @@ -5,7 +5,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -42,7 +42,7 @@ sourceFile:../first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -270,13 +270,13 @@ sourceFile:../first_part3.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 738, + "pos": 502, + "end": 746, "kind": "text" } ], @@ -303,20 +303,20 @@ sourceFile:../first_part3.ts ====================================================================== File:: /src/first/bin/first-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -text: (494-738) +text: (502-746) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -368,7 +368,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -452,7 +452,7 @@ sourceFile:../../../first/first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -1142,51 +1142,51 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 998, + "pos": 502, + "end": 1006, "kind": "emitHelpers", "data": "typescript:read" }, { - "pos": 1000, - "end": 1170, + "pos": 1008, + "end": 1178, "kind": "emitHelpers", "data": "typescript:spread" }, { - "pos": 1172, - "end": 1416, + "pos": 1180, + "end": 1424, "kind": "prepend", "data": "/src/first/bin/first-output.js", "texts": [ { - "pos": 1172, - "end": 1416, + "pos": 1180, + "end": 1424, "kind": "text" } ] }, { - "pos": 1416, - "end": 1917, + "pos": 1424, + "end": 1925, "kind": "prepend", "data": "/src/2/second-output.js", "texts": [ { - "pos": 1416, - "end": 1917, + "pos": 1424, + "end": 1925, "kind": "text" } ] }, { - "pos": 1917, - "end": 2070, + "pos": 1925, + "end": 2078, "kind": "text" } ], @@ -1239,20 +1239,20 @@ sourceFile:../../third_part1.ts ====================================================================== File:: /src/third/thirdjs/output/third-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -emitHelpers: (494-998):: typescript:read +emitHelpers: (502-1006):: typescript:read var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; @@ -1270,15 +1270,15 @@ var __read = (this && this.__read) || function (o, n) { return ar; }; ---------------------------------------------------------------------- -emitHelpers: (1000-1170):: typescript:spread +emitHelpers: (1008-1178):: typescript:spread var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; ---------------------------------------------------------------------- -prepend: (1172-1416):: /src/first/bin/first-output.js texts:: 1 +prepend: (1180-1424):: /src/first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1172-1416) +text: (1180-1424) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1291,9 +1291,9 @@ function f() { } ---------------------------------------------------------------------- -prepend: (1416-1917):: /src/2/second-output.js texts:: 1 +prepend: (1424-1925):: /src/2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1416-1917) +text: (1424-1925) var N; (function (N) { function f() { @@ -1318,7 +1318,7 @@ var C = (function () { }()); ---------------------------------------------------------------------- -text: (1917-2070) +text: (1925-2078) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js index 77e9d4bb9127d..f168d0562a0d6 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-all-projects.js @@ -702,7 +702,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -759,7 +759,7 @@ sourceFile:../../../first/first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -1324,39 +1324,39 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 644, + "pos": 502, + "end": 652, "kind": "prepend", "data": "/src/first/bin/first-output.js", "texts": [ { - "pos": 494, - "end": 644, + "pos": 502, + "end": 652, "kind": "text" } ] }, { - "pos": 644, - "end": 1048, + "pos": 652, + "end": 1056, "kind": "prepend", "data": "/src/2/second-output.js", "texts": [ { - "pos": 644, - "end": 1048, + "pos": 652, + "end": 1056, "kind": "text" } ] }, { - "pos": 1048, - "end": 1201, + "pos": 1056, + "end": 1209, "kind": "text" } ], @@ -1409,22 +1409,22 @@ sourceFile:../../third_part1.ts ====================================================================== File:: /src/third/thirdjs/output/third-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -prepend: (494-644):: /src/first/bin/first-output.js texts:: 1 +prepend: (502-652):: /src/first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (494-644) +text: (502-652) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { } @@ -1434,9 +1434,9 @@ function f() { } ---------------------------------------------------------------------- -prepend: (644-1048):: /src/2/second-output.js texts:: 1 +prepend: (652-1056):: /src/2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (644-1048) +text: (652-1056) var N; (function (N) { function f() { @@ -1457,7 +1457,7 @@ var C = (function () { }()); ---------------------------------------------------------------------- -text: (1048-1201) +text: (1056-1209) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js index 33927ceed5d6e..d043ab564b2bd 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/emitHelpers-in-only-one-dependency-project.js @@ -157,7 +157,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -193,7 +193,7 @@ sourceFile:../first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -394,13 +394,13 @@ sourceFile:../first_part3.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 721, + "pos": 502, + "end": 729, "kind": "text" } ], @@ -427,20 +427,20 @@ sourceFile:../first_part3.ts ====================================================================== File:: /src/first/bin/first-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -text: (494-721) +text: (502-729) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -772,7 +772,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -828,7 +828,7 @@ sourceFile:../../../first/first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -1375,39 +1375,39 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 721, + "pos": 502, + "end": 729, "kind": "prepend", "data": "/src/first/bin/first-output.js", "texts": [ { - "pos": 494, - "end": 721, + "pos": 502, + "end": 729, "kind": "text" } ] }, { - "pos": 721, - "end": 1125, + "pos": 729, + "end": 1133, "kind": "prepend", "data": "/src/2/second-output.js", "texts": [ { - "pos": 721, - "end": 1125, + "pos": 729, + "end": 1133, "kind": "text" } ] }, { - "pos": 1125, - "end": 1161, + "pos": 1133, + "end": 1169, "kind": "text" } ] @@ -1455,22 +1455,22 @@ sourceFile:../../third_part1.ts ====================================================================== File:: /src/third/thirdjs/output/third-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -prepend: (494-721):: /src/first/bin/first-output.js texts:: 1 +prepend: (502-729):: /src/first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (494-721) +text: (502-729) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1482,9 +1482,9 @@ function f() { } ---------------------------------------------------------------------- -prepend: (721-1125):: /src/2/second-output.js texts:: 1 +prepend: (729-1133):: /src/2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (721-1125) +text: (729-1133) var N; (function (N) { function f() { @@ -1505,7 +1505,7 @@ var C = (function () { }()); ---------------------------------------------------------------------- -text: (1125-1161) +text: (1133-1169) var c = new C(); c.doSomething(); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js index a035efb8d8f0b..eee32672ff5d3 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-all-projects.js @@ -1037,7 +1037,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -1135,7 +1135,7 @@ sourceFile:../../../first/first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -1998,39 +1998,39 @@ sourceFile:../../third_part1.ts }, { "pos": 678, - "end": 1170, + "end": 1178, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 1172, - "end": 1534, + "pos": 1180, + "end": 1542, "kind": "prepend", "data": "/src/first/bin/first-output.js", "texts": [ { - "pos": 1172, - "end": 1534, + "pos": 1180, + "end": 1542, "kind": "text" } ] }, { - "pos": 1534, - "end": 2154, + "pos": 1542, + "end": 2162, "kind": "prepend", "data": "/src/2/second-output.js", "texts": [ { - "pos": 1534, - "end": 2154, + "pos": 1542, + "end": 2162, "kind": "text" } ] }, { - "pos": 2154, - "end": 2519, + "pos": 2162, + "end": 2527, "kind": "text" } ], @@ -2109,22 +2109,22 @@ var __spread = (this && this.__spread) || function () { return ar; }; ---------------------------------------------------------------------- -emitHelpers: (678-1170):: typescript:rest +emitHelpers: (678-1178):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -prepend: (1172-1534):: /src/first/bin/first-output.js texts:: 1 +prepend: (1180-1542):: /src/first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1172-1534) +text: (1180-1542) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { } @@ -2141,9 +2141,9 @@ function firstfirst_part3Spread() { firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); ---------------------------------------------------------------------- -prepend: (1534-2154):: /src/2/second-output.js texts:: 1 +prepend: (1542-2162):: /src/2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1534-2154) +text: (1542-2162) var N; (function (N) { function f() { @@ -2171,7 +2171,7 @@ function secondsecond_part2Spread() { secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); ---------------------------------------------------------------------- -text: (2154-2519) +text: (2162-2527) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js index 36176e67722b5..73bbca16dff64 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/incremental-headers-change-without-dts-changes/multiple-emitHelpers-in-different-projects.js @@ -736,7 +736,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -817,7 +817,7 @@ sourceFile:../../../first/first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -1440,39 +1440,39 @@ sourceFile:../../third_part1.ts }, { "pos": 678, - "end": 1170, + "end": 1178, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 1172, - "end": 1322, + "pos": 1180, + "end": 1330, "kind": "prepend", "data": "/src/first/bin/first-output.js", "texts": [ { - "pos": 1172, - "end": 1322, + "pos": 1180, + "end": 1330, "kind": "text" } ] }, { - "pos": 1322, - "end": 1823, + "pos": 1330, + "end": 1831, "kind": "prepend", "data": "/src/2/second-output.js", "texts": [ { - "pos": 1322, - "end": 1823, + "pos": 1330, + "end": 1831, "kind": "text" } ] }, { - "pos": 1823, - "end": 1976, + "pos": 1831, + "end": 1984, "kind": "text" } ], @@ -1549,22 +1549,22 @@ var __spread = (this && this.__spread) || function () { return ar; }; ---------------------------------------------------------------------- -emitHelpers: (678-1170):: typescript:rest +emitHelpers: (678-1178):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -prepend: (1172-1322):: /src/first/bin/first-output.js texts:: 1 +prepend: (1180-1330):: /src/first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1172-1322) +text: (1180-1330) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { } @@ -1574,9 +1574,9 @@ function f() { } ---------------------------------------------------------------------- -prepend: (1322-1823):: /src/2/second-output.js texts:: 1 +prepend: (1330-1831):: /src/2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1322-1823) +text: (1330-1831) var N; (function (N) { function f() { @@ -1601,7 +1601,7 @@ var C = (function () { }()); ---------------------------------------------------------------------- -text: (1823-1976) +text: (1831-1984) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-all-projects.js index ffc0d67b13433..72f24e18ec041 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-all-projects.js @@ -133,7 +133,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -178,7 +178,7 @@ sourceFile:../second/second_part1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -488,13 +488,13 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 898, + "pos": 502, + "end": 906, "kind": "text" } ], @@ -521,20 +521,20 @@ sourceFile:../second/second_part2.ts ====================================================================== File:: /src/2/second-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -text: (494-898) +text: (502-906) var N; (function (N) { function f() { @@ -741,7 +741,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -777,7 +777,7 @@ sourceFile:../first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -978,13 +978,13 @@ sourceFile:../first_part3.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 721, + "pos": 502, + "end": 729, "kind": "text" } ], @@ -1011,20 +1011,20 @@ sourceFile:../first_part3.ts ====================================================================== File:: /src/first/bin/first-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -text: (494-721) +text: (502-729) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1412,7 +1412,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -1471,7 +1471,7 @@ sourceFile:../../../first/first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -2068,39 +2068,39 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 721, + "pos": 502, + "end": 729, "kind": "prepend", "data": "/src/first/bin/first-output.js", "texts": [ { - "pos": 494, - "end": 721, + "pos": 502, + "end": 729, "kind": "text" } ] }, { - "pos": 721, - "end": 1125, + "pos": 729, + "end": 1133, "kind": "prepend", "data": "/src/2/second-output.js", "texts": [ { - "pos": 721, - "end": 1125, + "pos": 729, + "end": 1133, "kind": "text" } ] }, { - "pos": 1125, - "end": 1278, + "pos": 1133, + "end": 1286, "kind": "text" } ], @@ -2153,22 +2153,22 @@ sourceFile:../../third_part1.ts ====================================================================== File:: /src/third/thirdjs/output/third-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -prepend: (494-721):: /src/first/bin/first-output.js texts:: 1 +prepend: (502-729):: /src/first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (494-721) +text: (502-729) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -2180,9 +2180,9 @@ function f() { } ---------------------------------------------------------------------- -prepend: (721-1125):: /src/2/second-output.js texts:: 1 +prepend: (729-1133):: /src/2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (721-1125) +text: (729-1133) var N; (function (N) { function f() { @@ -2203,7 +2203,7 @@ var C = (function () { }()); ---------------------------------------------------------------------- -text: (1125-1278) +text: (1133-1286) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-only-one-dependency-project.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-only-one-dependency-project.js index 3e3d2c010a595..d97e63db8a3fb 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-only-one-dependency-project.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/emitHelpers-in-only-one-dependency-project.js @@ -133,7 +133,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -178,7 +178,7 @@ sourceFile:../second/second_part1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -488,13 +488,13 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 898, + "pos": 502, + "end": 906, "kind": "text" } ], @@ -521,20 +521,20 @@ sourceFile:../second/second_part2.ts ====================================================================== File:: /src/2/second-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -text: (494-898) +text: (502-906) var N; (function (N) { function f() { @@ -1305,7 +1305,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -1359,7 +1359,7 @@ sourceFile:../../../first/first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -1874,39 +1874,39 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 644, + "pos": 502, + "end": 652, "kind": "prepend", "data": "/src/first/bin/first-output.js", "texts": [ { - "pos": 494, - "end": 644, + "pos": 502, + "end": 652, "kind": "text" } ] }, { - "pos": 644, - "end": 1048, + "pos": 652, + "end": 1056, "kind": "prepend", "data": "/src/2/second-output.js", "texts": [ { - "pos": 644, - "end": 1048, + "pos": 652, + "end": 1056, "kind": "text" } ] }, { - "pos": 1048, - "end": 1084, + "pos": 1056, + "end": 1092, "kind": "text" } ] @@ -1954,22 +1954,22 @@ sourceFile:../../third_part1.ts ====================================================================== File:: /src/third/thirdjs/output/third-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -prepend: (494-644):: /src/first/bin/first-output.js texts:: 1 +prepend: (502-652):: /src/first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (494-644) +text: (502-652) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { } @@ -1979,9 +1979,9 @@ function f() { } ---------------------------------------------------------------------- -prepend: (644-1048):: /src/2/second-output.js texts:: 1 +prepend: (652-1056):: /src/2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (644-1048) +text: (652-1056) var N; (function (N) { function f() { @@ -2002,7 +2002,7 @@ var C = (function () { }()); ---------------------------------------------------------------------- -text: (1048-1084) +text: (1056-1092) var c = new C(); c.doSomething(); diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-all-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-all-projects.js index 5e4c642efebd0..95fea18598d34 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-all-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-all-projects.js @@ -165,7 +165,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -237,7 +237,7 @@ sourceFile:../second/second_part1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -663,25 +663,25 @@ sourceFile:../second/second_part2.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 998, + "pos": 502, + "end": 1006, "kind": "emitHelpers", "data": "typescript:read" }, { - "pos": 1000, - "end": 1170, + "pos": 1008, + "end": 1178, "kind": "emitHelpers", "data": "typescript:spread" }, { - "pos": 1172, - "end": 1792, + "pos": 1180, + "end": 1800, "kind": "text" } ], @@ -710,20 +710,20 @@ sourceFile:../second/second_part2.ts ====================================================================== File:: /src/2/second-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -emitHelpers: (494-998):: typescript:read +emitHelpers: (502-1006):: typescript:read var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; @@ -741,13 +741,13 @@ var __read = (this && this.__read) || function (o, n) { return ar; }; ---------------------------------------------------------------------- -emitHelpers: (1000-1170):: typescript:spread +emitHelpers: (1008-1178):: typescript:spread var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; ---------------------------------------------------------------------- -text: (1172-1792) +text: (1180-1800) var N; (function (N) { function f() { @@ -993,7 +993,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -1056,7 +1056,7 @@ sourceFile:../first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -1372,25 +1372,25 @@ sourceFile:../first_part3.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 998, + "pos": 502, + "end": 1006, "kind": "emitHelpers", "data": "typescript:read" }, { - "pos": 1000, - "end": 1170, + "pos": 1008, + "end": 1178, "kind": "emitHelpers", "data": "typescript:spread" }, { - "pos": 1172, - "end": 1611, + "pos": 1180, + "end": 1619, "kind": "text" } ], @@ -1419,20 +1419,20 @@ sourceFile:../first_part3.ts ====================================================================== File:: /src/first/bin/first-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -emitHelpers: (494-998):: typescript:read +emitHelpers: (502-1006):: typescript:read var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; @@ -1450,13 +1450,13 @@ var __read = (this && this.__read) || function (o, n) { return ar; }; ---------------------------------------------------------------------- -emitHelpers: (1000-1170):: typescript:spread +emitHelpers: (1008-1178):: typescript:spread var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; ---------------------------------------------------------------------- -text: (1172-1611) +text: (1180-1619) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -2007,7 +2007,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -2107,7 +2107,7 @@ sourceFile:../../../first/first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -3010,51 +3010,51 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 998, + "pos": 502, + "end": 1006, "kind": "emitHelpers", "data": "typescript:read" }, { - "pos": 1000, - "end": 1170, + "pos": 1008, + "end": 1178, "kind": "emitHelpers", "data": "typescript:spread" }, { - "pos": 1172, - "end": 1611, + "pos": 1180, + "end": 1619, "kind": "prepend", "data": "/src/first/bin/first-output.js", "texts": [ { - "pos": 1172, - "end": 1611, + "pos": 1180, + "end": 1619, "kind": "text" } ] }, { - "pos": 1611, - "end": 2231, + "pos": 1619, + "end": 2239, "kind": "prepend", "data": "/src/2/second-output.js", "texts": [ { - "pos": 1611, - "end": 2231, + "pos": 1619, + "end": 2239, "kind": "text" } ] }, { - "pos": 2231, - "end": 2596, + "pos": 2239, + "end": 2604, "kind": "text" } ], @@ -3109,20 +3109,20 @@ sourceFile:../../third_part1.ts ====================================================================== File:: /src/third/thirdjs/output/third-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -emitHelpers: (494-998):: typescript:read +emitHelpers: (502-1006):: typescript:read var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; @@ -3140,15 +3140,15 @@ var __read = (this && this.__read) || function (o, n) { return ar; }; ---------------------------------------------------------------------- -emitHelpers: (1000-1170):: typescript:spread +emitHelpers: (1008-1178):: typescript:spread var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; ---------------------------------------------------------------------- -prepend: (1172-1611):: /src/first/bin/first-output.js texts:: 1 +prepend: (1180-1619):: /src/first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1172-1611) +text: (1180-1619) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -3167,9 +3167,9 @@ function firstfirst_part3Spread() { firstfirst_part3Spread.apply(void 0, __spread([10, 20, 30])); ---------------------------------------------------------------------- -prepend: (1611-2231):: /src/2/second-output.js texts:: 1 +prepend: (1619-2239):: /src/2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1611-2231) +text: (1619-2239) var N; (function (N) { function f() { @@ -3197,7 +3197,7 @@ function secondsecond_part2Spread() { secondsecond_part2Spread.apply(void 0, __spread([10, 20, 30])); ---------------------------------------------------------------------- -text: (2231-2596) +text: (2239-2604) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { diff --git a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-different-projects.js b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-different-projects.js index 57f2f0c389b7a..571327e08d6d1 100644 --- a/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-different-projects.js +++ b/tests/baselines/reference/tsbuild/outfile-concat/initial-Build/multiple-emitHelpers-in-different-projects.js @@ -845,7 +845,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -881,7 +881,7 @@ sourceFile:../first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -1082,13 +1082,13 @@ sourceFile:../first_part3.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 721, + "pos": 502, + "end": 729, "kind": "text" } ], @@ -1115,20 +1115,20 @@ sourceFile:../first_part3.ts ====================================================================== File:: /src/first/bin/first-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -text: (494-721) +text: (502-729) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -1549,7 +1549,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; @@ -1632,7 +1632,7 @@ sourceFile:../../../first/first_PART1.ts >>> t[p] = s[p]; >>> if (s != null && typeof Object.getOwnPropertySymbols === "function") >>> for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { ->>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) +>>> if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) >>> t[p[i]] = s[p[i]]; >>> } >>> return t; @@ -2295,51 +2295,51 @@ sourceFile:../../third_part1.ts "sections": [ { "pos": 0, - "end": 492, + "end": 500, "kind": "emitHelpers", "data": "typescript:rest" }, { - "pos": 494, - "end": 998, + "pos": 502, + "end": 1006, "kind": "emitHelpers", "data": "typescript:read" }, { - "pos": 1000, - "end": 1170, + "pos": 1008, + "end": 1178, "kind": "emitHelpers", "data": "typescript:spread" }, { - "pos": 1172, - "end": 1399, + "pos": 1180, + "end": 1407, "kind": "prepend", "data": "/src/first/bin/first-output.js", "texts": [ { - "pos": 1172, - "end": 1399, + "pos": 1180, + "end": 1407, "kind": "text" } ] }, { - "pos": 1399, - "end": 1900, + "pos": 1407, + "end": 1908, "kind": "prepend", "data": "/src/2/second-output.js", "texts": [ { - "pos": 1399, - "end": 1900, + "pos": 1407, + "end": 1908, "kind": "text" } ] }, { - "pos": 1900, - "end": 2053, + "pos": 1908, + "end": 2061, "kind": "text" } ], @@ -2392,20 +2392,20 @@ sourceFile:../../third_part1.ts ====================================================================== File:: /src/third/thirdjs/output/third-output.js ---------------------------------------------------------------------- -emitHelpers: (0-492):: typescript:rest +emitHelpers: (0-500):: typescript:rest var __rest = (this && this.__rest) || function (s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; }; ---------------------------------------------------------------------- -emitHelpers: (494-998):: typescript:read +emitHelpers: (502-1006):: typescript:read var __read = (this && this.__read) || function (o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; @@ -2423,15 +2423,15 @@ var __read = (this && this.__read) || function (o, n) { return ar; }; ---------------------------------------------------------------------- -emitHelpers: (1000-1170):: typescript:spread +emitHelpers: (1008-1178):: typescript:spread var __spread = (this && this.__spread) || function () { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; }; ---------------------------------------------------------------------- -prepend: (1172-1399):: /src/first/bin/first-output.js texts:: 1 +prepend: (1180-1407):: /src/first/bin/first-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1172-1399) +text: (1180-1407) var s = "Hello, world"; console.log(s); function forfirstfirst_PART1Rest() { @@ -2443,9 +2443,9 @@ function f() { } ---------------------------------------------------------------------- -prepend: (1399-1900):: /src/2/second-output.js texts:: 1 +prepend: (1407-1908):: /src/2/second-output.js texts:: 1 >>-------------------------------------------------------------------- -text: (1399-1900) +text: (1407-1908) var N; (function (N) { function f() { @@ -2470,7 +2470,7 @@ var C = (function () { }()); ---------------------------------------------------------------------- -text: (1900-2053) +text: (1908-2061) var c = new C(); c.doSomething(); function forthirdthird_part1Rest() { diff --git a/tests/baselines/reference/unusedLocalsAndObjectSpread.js b/tests/baselines/reference/unusedLocalsAndObjectSpread.js index 8eea55ca1f820..416107d34a6e9 100644 --- a/tests/baselines/reference/unusedLocalsAndObjectSpread.js +++ b/tests/baselines/reference/unusedLocalsAndObjectSpread.js @@ -37,7 +37,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; diff --git a/tests/baselines/reference/unusedLocalsAndObjectSpread2.js b/tests/baselines/reference/unusedLocalsAndObjectSpread2.js index b2be424b14677..66ec2a1a2ec6f 100644 --- a/tests/baselines/reference/unusedLocalsAndObjectSpread2.js +++ b/tests/baselines/reference/unusedLocalsAndObjectSpread2.js @@ -24,7 +24,7 @@ var __rest = (this && this.__rest) || function (s, e) { t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i])) + if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t;