diff --git a/src/vendor/polyfill/Object.es6.js b/src/vendor/polyfill/Object.es6.js index a5a6ac128a..b31bb6ab54 100644 --- a/src/vendor/polyfill/Object.es6.js +++ b/src/vendor/polyfill/Object.es6.js @@ -24,20 +24,20 @@ if (!Object.assign) { if (target == null) { throw new TypeError('Object.assign target cannot be null or undefined'); } - var to = Object(target); + var to = Object(target); var hasOwnProperty = Object.prototype.hasOwnProperty; for (var nextIndex = 1; nextIndex < arguments.length; nextIndex++) { var nextSource = arguments[nextIndex]; if (nextSource == null) { - throw new TypeError('Object.assign source cannot be null or undefined'); + continue; } var from = Object(nextSource); - // We don't currently support accessors nor proxies. Therefore this copy - // cannot throw. If we ever supported this then we must handle + // We don't currently support accessors nor proxies. Therefore this + // copy cannot throw. If we ever supported this then we must handle // exceptions and side-effects. for (var key in from) { @@ -50,4 +50,3 @@ if (!Object.assign) { return to; }; } -