Skip to content

Commit 6c1f733

Browse files
committed
Update baselines with fixed emit
1 parent bb46e78 commit 6c1f733

19 files changed

+40
-40
lines changed

tests/baselines/reference/importHelpersInTsx.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {
3030
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
3131
t[p] = s[p];
3232
if (typeof Object.getOwnPropertySymbols === "function")
33-
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++)
34-
t[i] = s[i];
33+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
34+
t[p[i]] = s[p[i]];
3535
}
3636
return t;
3737
};

tests/baselines/reference/objectRest.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ var __rest = (this && this.__rest) || function (s, e) {
4444
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4545
t[p] = s[p];
4646
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];
47+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
48+
t[p[i]] = s[p[i]];
4949
return t;
5050
};
5151
var o = { a: 1, b: 'no' };

tests/baselines/reference/objectRest2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {
2121
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
2222
t[p] = s[p];
2323
if (typeof Object.getOwnPropertySymbols === "function")
24-
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++)
25-
t[i] = s[i];
24+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
25+
t[p[i]] = s[p[i]];
2626
}
2727
return t;
2828
};

tests/baselines/reference/objectRestAssignment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ var __rest = (this && this.__rest) || function (s, e) {
2020
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2121
t[p] = s[p];
2222
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];
23+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
24+
t[p[i]] = s[p[i]];
2525
return t;
2626
};
2727
let ka;

tests/baselines/reference/objectRestForOf.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {
2121
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
2222
t[p] = s[p];
2323
if (typeof Object.getOwnPropertySymbols === "function")
24-
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++)
25-
t[i] = s[i];
24+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
25+
t[p[i]] = s[p[i]];
2626
}
2727
return t;
2828
};
@@ -31,8 +31,8 @@ var __rest = (this && this.__rest) || function (s, e) {
3131
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
3232
t[p] = s[p];
3333
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];
34+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
35+
t[p[i]] = s[p[i]];
3636
return t;
3737
};
3838
let array;

tests/baselines/reference/objectRestNegative.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ var __rest = (this && this.__rest) || function (s, e) {
1818
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1919
t[p] = s[p];
2020
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];
21+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
22+
t[p[i]] = s[p[i]];
2323
return t;
2424
};
2525
var o = { a: 1, b: 'no' };

tests/baselines/reference/objectRestParameter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ var __rest = (this && this.__rest) || function (s, e) {
1414
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
1515
t[p] = s[p];
1616
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];
17+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
18+
t[p[i]] = s[p[i]];
1919
return t;
2020
};
2121
function cloneAgain(_a) {

tests/baselines/reference/objectSpread.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {
8888
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
8989
t[p] = s[p];
9090
if (typeof Object.getOwnPropertySymbols === "function")
91-
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++)
92-
t[i] = s[i];
91+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
92+
t[p[i]] = s[p[i]];
9393
}
9494
return t;
9595
};

tests/baselines/reference/objectSpreadComputedProperty.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {
1717
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
1818
t[p] = s[p];
1919
if (typeof Object.getOwnPropertySymbols === "function")
20-
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++)
21-
t[i] = s[i];
20+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
21+
t[p[i]] = s[p[i]];
2222
}
2323
return t;
2424
};

tests/baselines/reference/objectSpreadIndexSignature.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ var __assign = (this && this.__assign) || Object.assign || function(t) {
2424
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
2525
t[p] = s[p];
2626
if (typeof Object.getOwnPropertySymbols === "function")
27-
for (var i = 0, s = Object.getOwnPropertySymbols(s); i < s.length; i++)
28-
t[i] = s[i];
27+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
28+
t[p[i]] = s[p[i]];
2929
}
3030
return t;
3131
};

0 commit comments

Comments
 (0)