1 line
3.7 KiB
JSON
1 line
3.7 KiB
JSON
|
{"ast":null,"code":"'use strict';\n\nvar charAt = require('../internals/string-multibyte').charAt;\n\nvar toString = require('../internals/to-string');\n\nvar InternalStateModule = require('../internals/internal-state');\n\nvar defineIterator = require('../internals/define-iterator');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR); // `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\n\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n }); // `%StringIteratorPrototype%.next` method\n // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return {\n value: undefined,\n done: true\n };\n point = charAt(string, index);\n state.index += point.length;\n return {\n value: point,\n done: false\n };\n});","map":{"version":3,"names":["charAt","require","toString","InternalStateModule","defineIterator","STRING_ITERATOR","setInternalState","set","getInternalState","getterFor","String","iterated","type","string","index","next","state","point","length","value","undefined","done"],"sources":["/Users/paolasanchez/Desktop/Pry4/Katoikia/katoikia-app/web-ui/sakai-react/node_modules/core-js/modules/es.string.iterator.js"],"sourcesContent":["'use strict';\nvar charAt = require('../internals/string-multibyte').charAt;\nvar toString = require('../internals/to-string');\nvar InternalStateModule = require('../internals/internal-state');\nvar defineIterator = require('../internals/define-iterator');\n\nvar STRING_ITERATOR = 'String Iterator';\nvar setInternalState = InternalStateModule.set;\nvar getInternalState = InternalStateModule.getterFor(STRING_ITERATOR);\n\n// `String.prototype[@@iterator]` method\n// https://tc39.es/ecma262/#sec-string.prototype-@@iterator\ndefineIterator(String, 'String', function (iterated) {\n setInternalState(this, {\n type: STRING_ITERATOR,\n string: toString(iterated),\n index: 0\n });\n// `%StringIteratorPrototype%.next` method\n// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next\n}, function next() {\n var state = getInternalState(this);\n var string = state.string;\n var index = state.index;\n var point;\n if (index >= string.length) return { value: undefined, done: true };\n point = charAt(string, index);\n state.index += point.length;\n return { value: point, done: false };\n});\n"],"mappings":"AAAA;;AACA,IAAIA,MAAM,GAAGC,OAAO,CAAC,+BAAD,CAAP,CAAyCD,MAAtD;;AACA,IAAIE,QAAQ,GAAGD,OAAO,CAAC,wBAAD,CAAtB;;AACA,IAAIE,mBAAmB,GAAGF,OAAO,CAAC,6BAAD,CAAjC;;AACA,IAAIG,cAAc,GAAGH,OAAO,CAAC,8BAAD,CAA5B;;AAEA,IAAII,eAAe,GAAG,iBAAtB;AACA,IAAIC,gBAAgB,GAAGH,mBAAmB,CAACI,GAA3C;AACA,IAAIC,gBAAgB,GAAGL,mBAAmB,CAACM,SAApB,CAA8BJ,eAA9B,CAAvB,C,CAEA;AACA;;AACAD,cAAc,CAACM,MAAD,EAAS,QAAT,EAAmB,UAAUC,QAAV,EAAoB;EACnDL,gBAAgB,CAAC,IAAD,EAAO;IACrBM,IAAI,EAAEP,eADe;IAErBQ,MAAM,EAAEX,QAAQ,CAACS,QAAD,CAFK;IAGrBG,KAAK,EAAE;EAHc,CAAP,CAAhB,CADmD,CAMrD;EACA;AACC,CARa,EAQX,SAASC,IAAT,GAAgB;EACjB,IAAIC,KAAK,GAAGR,gBAAgB,CAAC,IAAD,CAA5B;EACA,IAAIK,MAAM,GAAGG,KAAK,CAACH,MAAnB;EACA,IAAIC,KAAK,GAAGE,KAAK,CAACF,KAAlB;EACA,IAAIG,KAAJ;EACA,IAAIH,KAAK,IAAID,MAAM,CAACK,MAApB,EAA4B,OAAO;IAAEC,KAAK,EAAEC,SAAT;IAAoBC,IAAI,EAAE;EAA1B,CAAP;EAC5BJ,KAAK,GAAGjB,MAAM,CAACa,MAAD,EAASC,KAAT,CAAd;EACAE,KAAK,CAACF,KAAN,IAAeG,KAAK,CAACC,MAArB;EACA,OAAO;IAAEC,KAAK,EAAEF,KAAT;IAAgBI,IAAI,EAAE;EAAtB,CAAP;AACD,CAjBa,CAAd"},"metadata":{},"sourceType":"script"}
|