Skip to content

Commit 46cdac1

Browse files
committed
Update baselines
1 parent a67a749 commit 46cdac1

File tree

2 files changed

+2
-18
lines changed

2 files changed

+2
-18
lines changed

tests/baselines/reference/objectRest2.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ rootConnection('test');
1515

1616

1717
//// [objectRest2.js]
18-
var __assign = (this && this.__assign) || Object.assign || function(t) {
19-
for (var s, i = 1, n = arguments.length; i < n; i++) {
20-
s = arguments[i];
21-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22-
t[p] = s[p];
23-
}
24-
return t;
25-
};
2618
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2719
return new (P || (P = Promise))(function (resolve, reject) {
2820
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -35,7 +27,7 @@ function rootConnection(name) {
3527
return {
3628
resolve: (context, args) => __awaiter(this, void 0, void 0, function* () {
3729
const { objects } = yield { objects: 12 };
38-
return __assign({}, connectionFromArray(objects, args));
30+
return Object.assign({}, connectionFromArray(objects, args));
3931
})
4032
};
4133
}

tests/baselines/reference/objectRestForOf.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,6 @@ for (const norest of array.map(a => ({ ...a, x: 'a string' }))) {
1515

1616

1717
//// [objectRestForOf.js]
18-
var __assign = (this && this.__assign) || Object.assign || function(t) {
19-
for (var s, i = 1, n = arguments.length; i < n; i++) {
20-
s = arguments[i];
21-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22-
t[p] = s[p];
23-
}
24-
return t;
25-
};
2618
var __rest = (this && this.__rest) || function (s, e) {
2719
var t = {};
2820
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -43,6 +35,6 @@ for (let _b of array) {
4335
({ x: xx } = _b, rrestOff = __rest(_b, ["x"]));
4436
[xx, rrestOff];
4537
}
46-
for (const norest of array.map(a => (__assign({}, a, { x: 'a string' })))) {
38+
for (const norest of array.map(a => (Object.assign({}, a, { x: 'a string' })))) {
4739
[norest.x, norest.y];
4840
}

0 commit comments

Comments
 (0)