Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/stubs/Object.assign.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign

"use strict";

function assign(target, sources) {
if (target == null) {
throw new TypeError('Object.assign target cannot be null or undefined');
Expand Down Expand Up @@ -40,6 +42,6 @@ function assign(target, sources) {
}

return to;
};
}

module.exports = assign;
2 changes: 2 additions & 0 deletions src/utils/deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* @providesModule deprecated
*/

"use strict";

var assign = require('Object.assign');
var warning = require('warning');

Expand Down
2 changes: 2 additions & 0 deletions src/vendor_deprecated/core/copyProperties.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
* @providesModule copyProperties
*/

"use strict";

/**
* Copy properties from one or more objects (up to 5) into the first object.
* This is a shallow copy. It mutates the first object and also returns it.
Expand Down