From 9ef0df5cd7407ea3dd5022b4e844ef812d072f46 Mon Sep 17 00:00:00 2001 From: nelsonic Date: Sat, 24 Sep 2016 11:39:36 +0100 Subject: [PATCH] adds Object.assign example for https://github.com/dwyl/goodparts/issues/221 #1 --- examples/object.assign.compiled.js | 1 + examples/object.assign.js | 16 ++++++++++++++++ package.json | 3 +++ 3 files changed, 20 insertions(+) create mode 100644 examples/object.assign.compiled.js create mode 100644 examples/object.assign.js diff --git a/examples/object.assign.compiled.js b/examples/object.assign.compiled.js new file mode 100644 index 0000000..b388d10 --- /dev/null +++ b/examples/object.assign.compiled.js @@ -0,0 +1 @@ +"var $jscomp={scope:{},owns:function(a,b){return Object.prototype.hasOwnProperty.call(a,b)}};$jscomp.defineProperty=\"function\"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(c.get||c.set)throw new TypeError(\"ES3 does not support getters and setters.\");a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};$jscomp.getGlobal=function(a){return\"undefined\"!=typeof window&&window===a?a:\"undefined\"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);\n$jscomp.polyfill=function(a,b,c,d){if(b){c=$jscomp.global;a=a.split(\".\");for(d=0;d