rn-web-cli
Version:
React Native for Web
1 lines • 3.21 kB
Source Map (JSON)
{"version":3,"sources":["node_modules\\babel-polyfill\\node_modules\\core-js\\modules\\_object-create.js"],"names":["anObject","require","dPs","enumBugKeys","IE_PROTO","Empty","PROTOTYPE","createDict","iframe","i","length","lt","gt","iframeDocument","style","display","appendChild","src","contentWindow","document","open","write","close","F","module","exports","Object","create","O","Properties","result","undefined"],"mappings":";AACA,GAAIA,UAAcC,QAAQ,cAAR,CAAlB;AACIC,IAAcD,QAAQ,eAAR,CADlB;AAEIE,YAAcF,QAAQ,kBAAR,CAFlB;AAGIG,SAAcH,QAAQ,eAAR,EAAyB,UAAzB,CAHlB;AAIII,MAAc,QAAdA,MAAc,EAAU,CAAe,CAJ3C;AAKIC,UAAc,WALlB;;;AAQA,GAAIC,aAAa,qBAAU;;AAEzB,GAAIC,QAASP,QAAQ,eAAR,EAAyB,QAAzB,CAAb;AACIQ,EAASN,YAAYO,MADzB;AAEIC,GAAS,GAFb;AAGIC,GAAS,GAHb;AAIIC,cAJJ;AAKAL,OAAOM,KAAP,CAAaC,OAAb,CAAuB,MAAvB;AACAd,QAAQ,SAAR,EAAmBe,WAAnB,CAA+BR,MAA/B;AACAA,OAAOS,GAAP,CAAa,aAAb;;;AAGAJ,eAAiBL,OAAOU,aAAP,CAAqBC,QAAtC;AACAN,eAAeO,IAAf;AACAP,eAAeQ,KAAf,CAAqBV,GAAK,QAAL,CAAgBC,EAAhB,CAAqB,mBAArB,CAA2CD,EAA3C,CAAgD,SAAhD,CAA4DC,EAAjF;AACAC,eAAeS,KAAf;AACAf,YAAaM,eAAeU,CAA5B;AACA,MAAMd,GAAN,EAAU,MAAOF,aAAWD,SAAX,EAAsBH,YAAYM,CAAZ,CAAtB,CAAP,CAAV;AACA,MAAOF,cAAP;AACD,CAnBD;;AAqBAiB,OAAOC,OAAP,CAAiBC,OAAOC,MAAP,EAAiB,QAASA,OAAT,CAAgBC,CAAhB,CAAmBC,UAAnB,CAA8B;AAC9D,GAAIC,OAAJ;AACA,GAAGF,IAAM,IAAT,CAAc;AACZvB,MAAMC,SAAN,EAAmBN,SAAS4B,CAAT,CAAnB;AACAE,OAAS,GAAIzB,MAAJ,EAAT;AACAA,MAAMC,SAAN,EAAmB,IAAnB;;AAEAwB,OAAO1B,QAAP,EAAmBwB,CAAnB;AACD,CAND,IAMOE,QAASvB,aAAT;AACP,MAAOsB,cAAeE,SAAf,CAA2BD,MAA3B,CAAoC5B,IAAI4B,MAAJ,CAAYD,UAAZ,CAA3C;AACD,CAVD","file":"_object-create.js","sourceRoot":"D:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])\nvar anObject = require('./_an-object')\n , dPs = require('./_object-dps')\n , enumBugKeys = require('./_enum-bug-keys')\n , IE_PROTO = require('./_shared-key')('IE_PROTO')\n , Empty = function(){ /* empty */ }\n , PROTOTYPE = 'prototype';\n\n// Create object with fake `null` prototype: use iframe Object with cleared prototype\nvar createDict = function(){\n // Thrash, waste and sodomy: IE GC bug\n var iframe = require('./_dom-create')('iframe')\n , i = enumBugKeys.length\n , lt = '<'\n , gt = '>'\n , iframeDocument;\n iframe.style.display = 'none';\n require('./_html').appendChild(iframe);\n iframe.src = 'javascript:'; // eslint-disable-line no-script-url\n // createDict = iframe.contentWindow.Object;\n // html.removeChild(iframe);\n iframeDocument = iframe.contentWindow.document;\n iframeDocument.open();\n iframeDocument.write(lt + 'script' + gt + 'document.F=Object' + lt + '/script' + gt);\n iframeDocument.close();\n createDict = iframeDocument.F;\n while(i--)delete createDict[PROTOTYPE][enumBugKeys[i]];\n return createDict();\n};\n\nmodule.exports = Object.create || function create(O, Properties){\n var result;\n if(O !== null){\n Empty[PROTOTYPE] = anObject(O);\n result = new Empty;\n Empty[PROTOTYPE] = null;\n // add \"__proto__\" for Object.getPrototypeOf polyfill\n result[IE_PROTO] = O;\n } else result = createDict();\n return Properties === undefined ? result : dPs(result, Properties);\n};\n"]}