summaryrefslogtreecommitdiffstats
path: root/node_modules/object.assign/shim.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/object.assign/shim.js')
-rw-r--r--node_modules/object.assign/shim.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/node_modules/object.assign/shim.js b/node_modules/object.assign/shim.js
new file mode 100644
index 0000000..9f896ae
--- /dev/null
+++ b/node_modules/object.assign/shim.js
@@ -0,0 +1,14 @@
+'use strict';
+
+var define = require('define-properties');
+var getPolyfill = require('./polyfill');
+
+module.exports = function shimAssign() {
+ var polyfill = getPolyfill();
+ define(
+ Object,
+ { assign: polyfill },
+ { assign: function () { return Object.assign !== polyfill; } }
+ );
+ return polyfill;
+};