Skip to content

Commit 0690bf4

Browse files
committed
Update baselines
1 parent 47f3319 commit 0690bf4

18 files changed

+60
-3
lines changed

tests/baselines/reference/importHelpersInTsx.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {
2929
s = arguments[i];
3030
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
3131
t[p] = s[p];
32+
if (typeof Object.getOwnPropertySymbols === "function")
33+
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++)
34+
t[i] = s[i];
3235
}
3336
return t;
3437
};

tests/baselines/reference/objectRest.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,16 @@ var __rest = (this && this.__rest) || function (s, e) {
4343
var t = {};
4444
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4545
t[p] = s[p];
46+
if (typeof Object.getOwnPropertySymbols === "function")
47+
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++) if (e.indexOf(s[i]) > 0)
48+
t[i] = s[i];
4649
return t;
4750
};
4851
var o = { a: 1, b: 'no' };
4952
var clone = __rest(o, []);
5053
var { a } = o, justB = __rest(o, ["a"]);
5154
var { a, b: renamed } = o, empty = __rest(o, ["a", "b"]);
52-
var _a = 'b', renamed = o[_a], justA = __rest(o, [_a + ""]);
55+
var _a = 'b', renamed = o[_a], justA = __rest(o, [typeof _a === "symbol" ? _a : _a + ""]);
5356
var { 'b': renamed } = o, justA = __rest(o, ["b"]);
5457
var { b: { '0': n, '1': oooo } } = o, justA = __rest(o, ["b"]);
5558
let o2 = { c: 'terrible idea?', d: 'yes' };
@@ -71,6 +74,6 @@ var removable = new Removable();
7174
var { removed } = removable, removableRest = __rest(removable, ["removed"]);
7275
let computed = 'b';
7376
let computed2 = 'a';
74-
var _h = computed, stillNotGreat = o[_h], _j = computed2, soSo = o[_j], o = __rest(o, [_h + "", _j + ""]);
75-
(_k = computed, stillNotGreat = o[_k], _l = computed2, soSo = o[_l], o = __rest(o, [_k + "", _l + ""]), o);
77+
var _h = computed, stillNotGreat = o[_h], _j = computed2, soSo = o[_j], o = __rest(o, [typeof _h === "symbol" ? _h : _h + "", typeof _j === "symbol" ? _j : _j + ""]);
78+
(_k = computed, stillNotGreat = o[_k], _l = computed2, soSo = o[_l], o = __rest(o, [typeof _k === "symbol" ? _k : _k + "", typeof _l === "symbol" ? _l : _l + ""]), o);
7679
var _e, _g, _k, _l;

tests/baselines/reference/objectRestAssignment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ var __rest = (this && this.__rest) || function (s, e) {
1919
var t = {};
2020
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2121
t[p] = s[p];
22+
if (typeof Object.getOwnPropertySymbols === "function")
23+
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++) if (e.indexOf(s[i]) > 0)
24+
t[i] = s[i];
2225
return t;
2326
};
2427
let ka;

tests/baselines/reference/objectRestForOf.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,19 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {
2020
s = arguments[i];
2121
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
2222
t[p] = s[p];
23+
if (typeof Object.getOwnPropertySymbols === "function")
24+
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++)
25+
t[i] = s[i];
2326
}
2427
return t;
2528
};
2629
var __rest = (this && this.__rest) || function (s, e) {
2730
var t = {};
2831
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2932
t[p] = s[p];
33+
if (typeof Object.getOwnPropertySymbols === "function")
34+
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++) if (e.indexOf(s[i]) > 0)
35+
t[i] = s[i];
3036
return t;
3137
};
3238
let array;

tests/baselines/reference/objectRestNegative.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ var __rest = (this && this.__rest) || function (s, e) {
1717
var t = {};
1818
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1919
t[p] = s[p];
20+
if (typeof Object.getOwnPropertySymbols === "function")
21+
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++) if (e.indexOf(s[i]) > 0)
22+
t[i] = s[i];
2023
return t;
2124
};
2225
var o = { a: 1, b: 'no' };

tests/baselines/reference/objectRestParameter.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ var __rest = (this && this.__rest) || function (s, e) {
1313
var t = {};
1414
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1515
t[p] = s[p];
16+
if (typeof Object.getOwnPropertySymbols === "function")
17+
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++) if (e.indexOf(s[i]) > 0)
18+
t[i] = s[i];
1619
return t;
1720
};
1821
function cloneAgain(_a) {

tests/baselines/reference/objectSpread.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {
8787
s = arguments[i];
8888
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
8989
t[p] = s[p];
90+
if (typeof Object.getOwnPropertySymbols === "function")
91+
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++)
92+
t[i] = s[i];
9093
}
9194
return t;
9295
};

tests/baselines/reference/objectSpreadComputedProperty.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {
1616
s = arguments[i];
1717
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
1818
t[p] = s[p];
19+
if (typeof Object.getOwnPropertySymbols === "function")
20+
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++)
21+
t[i] = s[i];
1922
}
2023
return t;
2124
};

tests/baselines/reference/objectSpreadIndexSignature.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {
2323
s = arguments[i];
2424
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
2525
t[p] = s[p];
26+
if (typeof Object.getOwnPropertySymbols === "function")
27+
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++)
28+
t[i] = s[i];
2629
}
2730
return t;
2831
};

tests/baselines/reference/objectSpreadNegative.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {
7777
s = arguments[i];
7878
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7979
t[p] = s[p];
80+
if (typeof Object.getOwnPropertySymbols === "function")
81+
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++)
82+
t[i] = s[i];
8083
}
8184
return t;
8285
};

0 commit comments

Comments
 (0)