dcb8abce418485b84baad24fcf0ee45a.json 2.96 KB
{"ast":null,"code":"var anObject = require('../internals/an-object');\n\nvar aPossiblePrototype = require('../internals/a-possible-prototype'); // `Object.setPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n\n/* eslint-disable no-proto */\n\n\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n  var CORRECT_SETTER = false;\n  var test = {};\n  var setter;\n\n  try {\n    setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;\n    setter.call(test, []);\n    CORRECT_SETTER = test instanceof Array;\n  } catch (error) {\n    /* empty */\n  }\n\n  return function setPrototypeOf(O, proto) {\n    anObject(O);\n    aPossiblePrototype(proto);\n    if (CORRECT_SETTER) setter.call(O, proto);else O.__proto__ = proto;\n    return O;\n  };\n}() : undefined);","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/core-js-pure/internals/object-set-prototype-of.js"],"names":["anObject","require","aPossiblePrototype","module","exports","Object","setPrototypeOf","CORRECT_SETTER","test","setter","getOwnPropertyDescriptor","prototype","set","call","Array","error","O","proto","__proto__","undefined"],"mappings":"AAAA,IAAIA,QAAQ,GAAGC,OAAO,CAAC,wBAAD,CAAtB;;AACA,IAAIC,kBAAkB,GAAGD,OAAO,CAAC,mCAAD,CAAhC,C,CAEA;AACA;AACA;;AACA;;;AACAE,MAAM,CAACC,OAAP,GAAiBC,MAAM,CAACC,cAAP,KAA0B,eAAe,EAAf,GAAoB,YAAY;AACzE,MAAIC,cAAc,GAAG,KAArB;AACA,MAAIC,IAAI,GAAG,EAAX;AACA,MAAIC,MAAJ;;AACA,MAAI;AACFA,IAAAA,MAAM,GAAGJ,MAAM,CAACK,wBAAP,CAAgCL,MAAM,CAACM,SAAvC,EAAkD,WAAlD,EAA+DC,GAAxE;AACAH,IAAAA,MAAM,CAACI,IAAP,CAAYL,IAAZ,EAAkB,EAAlB;AACAD,IAAAA,cAAc,GAAGC,IAAI,YAAYM,KAAjC;AACD,GAJD,CAIE,OAAOC,KAAP,EAAc;AAAE;AAAa;;AAC/B,SAAO,SAAST,cAAT,CAAwBU,CAAxB,EAA2BC,KAA3B,EAAkC;AACvCjB,IAAAA,QAAQ,CAACgB,CAAD,CAAR;AACAd,IAAAA,kBAAkB,CAACe,KAAD,CAAlB;AACA,QAAIV,cAAJ,EAAoBE,MAAM,CAACI,IAAP,CAAYG,CAAZ,EAAeC,KAAf,EAApB,KACKD,CAAC,CAACE,SAAF,GAAcD,KAAd;AACL,WAAOD,CAAP;AACD,GAND;AAOD,CAhB8D,EAApB,GAgBrCG,SAhBW,CAAjB","sourcesContent":["var anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.github.io/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n/* eslint-disable no-proto */\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n  var CORRECT_SETTER = false;\n  var test = {};\n  var setter;\n  try {\n    setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;\n    setter.call(test, []);\n    CORRECT_SETTER = test instanceof Array;\n  } catch (error) { /* empty */ }\n  return function setPrototypeOf(O, proto) {\n    anObject(O);\n    aPossiblePrototype(proto);\n    if (CORRECT_SETTER) setter.call(O, proto);\n    else O.__proto__ = proto;\n    return O;\n  };\n}() : undefined);\n"]},"metadata":{},"sourceType":"script"}