c6aa7786518025d38a8dea7a072f82c8.json
2.41 KB
{"ast":null,"code":"var aFunction = require('../internals/a-function'); // optional / simple context binding\n\n\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n\n switch (length) {\n case 0:\n return function () {\n return fn.call(that);\n };\n\n case 1:\n return function (a) {\n return fn.call(that, a);\n };\n\n case 2:\n return function (a, b) {\n return fn.call(that, a, b);\n };\n\n case 3:\n return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n\n return function ()\n /* ...args */\n {\n return fn.apply(that, arguments);\n };\n};","map":{"version":3,"sources":["C:/Users/kkwan_000/Desktop/git/2017110269/minsung/node_modules/core-js-pure/internals/function-bind-context.js"],"names":["aFunction","require","module","exports","fn","that","length","undefined","call","a","b","c","apply","arguments"],"mappings":"AAAA,IAAIA,SAAS,GAAGC,OAAO,CAAC,yBAAD,CAAvB,C,CAEA;;;AACAC,MAAM,CAACC,OAAP,GAAiB,UAAUC,EAAV,EAAcC,IAAd,EAAoBC,MAApB,EAA4B;AAC3CN,EAAAA,SAAS,CAACI,EAAD,CAAT;AACA,MAAIC,IAAI,KAAKE,SAAb,EAAwB,OAAOH,EAAP;;AACxB,UAAQE,MAAR;AACE,SAAK,CAAL;AAAQ,aAAO,YAAY;AACzB,eAAOF,EAAE,CAACI,IAAH,CAAQH,IAAR,CAAP;AACD,OAFO;;AAGR,SAAK,CAAL;AAAQ,aAAO,UAAUI,CAAV,EAAa;AAC1B,eAAOL,EAAE,CAACI,IAAH,CAAQH,IAAR,EAAcI,CAAd,CAAP;AACD,OAFO;;AAGR,SAAK,CAAL;AAAQ,aAAO,UAAUA,CAAV,EAAaC,CAAb,EAAgB;AAC7B,eAAON,EAAE,CAACI,IAAH,CAAQH,IAAR,EAAcI,CAAd,EAAiBC,CAAjB,CAAP;AACD,OAFO;;AAGR,SAAK,CAAL;AAAQ,aAAO,UAAUD,CAAV,EAAaC,CAAb,EAAgBC,CAAhB,EAAmB;AAChC,eAAOP,EAAE,CAACI,IAAH,CAAQH,IAAR,EAAcI,CAAd,EAAiBC,CAAjB,EAAoBC,CAApB,CAAP;AACD,OAFO;AAVV;;AAcA,SAAO;AAAU;AAAe;AAC9B,WAAOP,EAAE,CAACQ,KAAH,CAASP,IAAT,EAAeQ,SAAf,CAAP;AACD,GAFD;AAGD,CApBD","sourcesContent":["var aFunction = require('../internals/a-function');\n\n// optional / simple context binding\nmodule.exports = function (fn, that, length) {\n aFunction(fn);\n if (that === undefined) return fn;\n switch (length) {\n case 0: return function () {\n return fn.call(that);\n };\n case 1: return function (a) {\n return fn.call(that, a);\n };\n case 2: return function (a, b) {\n return fn.call(that, a, b);\n };\n case 3: return function (a, b, c) {\n return fn.call(that, a, b, c);\n };\n }\n return function (/* ...args */) {\n return fn.apply(that, arguments);\n };\n};\n"]},"metadata":{},"sourceType":"script"}