Skip to content

Commit 0da305b

Browse files
committed
Adjusted baseline for tests.
1 parent 39321a5 commit 0da305b

21 files changed

+24
-22
lines changed

src/compiler/transformers/destructuring.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ namespace ts {
522522
t[p] = s[p];
523523
if (s != null && typeof Object.getOwnPropertySymbols === "function")
524524
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
525-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i]))
525+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
526526
t[p[i]] = s[p[i]];
527527
}
528528
return t;

tests/baselines/reference/asyncFunctionTempVariableScoping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var __rest = (this && this.__rest) || function (s, e) {
4646
t[p] = s[p];
4747
if (s != null && typeof Object.getOwnPropertySymbols === "function")
4848
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
49-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i]))
49+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
5050
t[p[i]] = s[p[i]];
5151
}
5252
return t;

tests/baselines/reference/destructuringAssignmentWithStrictNullChecks.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
1010
t[p] = s[p];
1111
if (s != null && typeof Object.getOwnPropertySymbols === "function")
1212
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
13-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i]))
13+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1414
t[p[i]] = s[p[i]];
1515
}
1616
return t;

tests/baselines/reference/destructuringInitializerContextualTypeFromContext.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var __rest = (this && this.__rest) || function (s, e) {
4444
t[p] = s[p];
4545
if (s != null && typeof Object.getOwnPropertySymbols === "function")
4646
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
47-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i]))
47+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
4848
t[p[i]] = s[p[i]];
4949
}
5050
return t;

tests/baselines/reference/destructuringObjectBindingPatternAndAssignment5.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var __rest = (this && this.__rest) || function (s, e) {
1313
t[p] = s[p];
1414
if (s != null && typeof Object.getOwnPropertySymbols === "function")
1515
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
16-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i]))
16+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1717
t[p[i]] = s[p[i]];
1818
}
1919
return t;

tests/baselines/reference/forLoopWithDestructuringDoesNotElideFollowingStatement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
1010
t[p] = s[p];
1111
if (s != null && typeof Object.getOwnPropertySymbols === "function")
1212
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
13-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i]))
13+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
1414
t[p[i]] = s[p[i]];
1515
}
1616
return t;

tests/baselines/reference/genericIsNeverEmptyObject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ var __rest = (this && this.__rest) || function (s, e) {
3030
t[p] = s[p];
3131
if (s != null && typeof Object.getOwnPropertySymbols === "function")
3232
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
33-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i]))
33+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
3434
t[p[i]] = s[p[i]];
3535
}
3636
return t;

tests/baselines/reference/genericObjectRest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var __rest = (this && this.__rest) || function (s, e) {
3636
t[p] = s[p];
3737
if (s != null && typeof Object.getOwnPropertySymbols === "function")
3838
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
39-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i]))
39+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
4040
t[p[i]] = s[p[i]];
4141
}
4242
return t;

tests/baselines/reference/literalTypeWidening.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ var __rest = (this && this.__rest) || function (s, e) {
157157
t[p] = s[p];
158158
if (s != null && typeof Object.getOwnPropertySymbols === "function")
159159
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
160-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i]))
160+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
161161
t[p[i]] = s[p[i]];
162162
}
163163
return t;

tests/baselines/reference/mappedTypeConstraints.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var __rest = (this && this.__rest) || function (s, e) {
4343
t[p] = s[p];
4444
if (s != null && typeof Object.getOwnPropertySymbols === "function")
4545
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
46-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable(p[i]))
46+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
4747
t[p[i]] = s[p[i]];
4848
}
4949
return t;

0 commit comments

Comments
 (0)