1 line
3.4 KiB
JSON
1 line
3.4 KiB
JSON
{"ast":null,"code":"var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function next() {\n return {\n done: !!called++\n };\n },\n 'return': function _return() {\n SAFE_CLOSING = true;\n }\n };\n\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n }; // eslint-disable-next-line es-x/no-array-from, no-throw-literal -- required for testing\n\n\n Array.from(iteratorWithReturn, function () {\n throw 2;\n });\n} catch (error) {\n /* empty */\n}\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n\n try {\n var object = {};\n\n object[ITERATOR] = function () {\n return {\n next: function next() {\n return {\n done: ITERATION_SUPPORT = true\n };\n }\n };\n };\n\n exec(object);\n } catch (error) {\n /* empty */\n }\n\n return ITERATION_SUPPORT;\n};","map":{"version":3,"names":["wellKnownSymbol","require","ITERATOR","SAFE_CLOSING","called","iteratorWithReturn","next","done","Array","from","error","module","exports","exec","SKIP_CLOSING","ITERATION_SUPPORT","object"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/core-js/internals/check-correctness-of-iteration.js"],"sourcesContent":["var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar ITERATOR = wellKnownSymbol('iterator');\nvar SAFE_CLOSING = false;\n\ntry {\n var called = 0;\n var iteratorWithReturn = {\n next: function () {\n return { done: !!called++ };\n },\n 'return': function () {\n SAFE_CLOSING = true;\n }\n };\n iteratorWithReturn[ITERATOR] = function () {\n return this;\n };\n // eslint-disable-next-line es-x/no-array-from, no-throw-literal -- required for testing\n Array.from(iteratorWithReturn, function () { throw 2; });\n} catch (error) { /* empty */ }\n\nmodule.exports = function (exec, SKIP_CLOSING) {\n if (!SKIP_CLOSING && !SAFE_CLOSING) return false;\n var ITERATION_SUPPORT = false;\n try {\n var object = {};\n object[ITERATOR] = function () {\n return {\n next: function () {\n return { done: ITERATION_SUPPORT = true };\n }\n };\n };\n exec(object);\n } catch (error) { /* empty */ }\n return ITERATION_SUPPORT;\n};\n"],"mappings":"AAAA,IAAIA,eAAe,GAAGC,OAAO,CAAC,gCAAD,CAA7B;;AAEA,IAAIC,QAAQ,GAAGF,eAAe,CAAC,UAAD,CAA9B;AACA,IAAIG,YAAY,GAAG,KAAnB;;AAEA,IAAI;EACF,IAAIC,MAAM,GAAG,CAAb;EACA,IAAIC,kBAAkB,GAAG;IACvBC,IAAI,EAAE,gBAAY;MAChB,OAAO;QAAEC,IAAI,EAAE,CAAC,CAACH,MAAM;MAAhB,CAAP;IACD,CAHsB;IAIvB,UAAU,mBAAY;MACpBD,YAAY,GAAG,IAAf;IACD;EANsB,CAAzB;;EAQAE,kBAAkB,CAACH,QAAD,CAAlB,GAA+B,YAAY;IACzC,OAAO,IAAP;EACD,CAFD,CAVE,CAaF;;;EACAM,KAAK,CAACC,IAAN,CAAWJ,kBAAX,EAA+B,YAAY;IAAE,MAAM,CAAN;EAAU,CAAvD;AACD,CAfD,CAeE,OAAOK,KAAP,EAAc;EAAE;AAAa;;AAE/BC,MAAM,CAACC,OAAP,GAAiB,UAAUC,IAAV,EAAgBC,YAAhB,EAA8B;EAC7C,IAAI,CAACA,YAAD,IAAiB,CAACX,YAAtB,EAAoC,OAAO,KAAP;EACpC,IAAIY,iBAAiB,GAAG,KAAxB;;EACA,IAAI;IACF,IAAIC,MAAM,GAAG,EAAb;;IACAA,MAAM,CAACd,QAAD,CAAN,GAAmB,YAAY;MAC7B,OAAO;QACLI,IAAI,EAAE,gBAAY;UAChB,OAAO;YAAEC,IAAI,EAAEQ,iBAAiB,GAAG;UAA5B,CAAP;QACD;MAHI,CAAP;IAKD,CAND;;IAOAF,IAAI,CAACG,MAAD,CAAJ;EACD,CAVD,CAUE,OAAON,KAAP,EAAc;IAAE;EAAa;;EAC/B,OAAOK,iBAAP;AACD,CAfD"},"metadata":{},"sourceType":"script"} |