This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
// Metro module 4441 (f4442).
import * as _callBoundIntrinsic from "./callBoundIntrinsic";
import * as _ToObject from "./ToObject";
import * as _isString from "./isString";
import * as _ToUint32 from "./ToUint32";
import * as _Module4469 from "./Module4469";
import * as _ArraySpeciesCreate from "./ArraySpeciesCreate";
import * as _ToString from "./ToString_4457";
import * as _HasProperty from "./HasProperty";
import * as _Get from "./Get_4480";
import * as _Call from "./Call";
import * as _CreateDataPropertyOrThrow from "./CreateDataPropertyOrThrow";
const r11 = Object("a");
let c2664_2 = r11[0] !== "a" || !(0 in r11);
let c2664_3 = _callBoundIntrinsic("String.prototype.split");
module.exports = function map(a0) {
const r9 = _ToObject(this);
const r31 = _ToUint32((c2664_2 ? _isString(r9) ? c2664_3(r9, "") : r9 : r9).length);
if (_Module4469(a0)) {
const r41 = arguments.length > 1 ? arguments[1] : void 0;
const r44 = _ArraySpeciesCreate(r9, r31);
let r0 = 0;
while (r0 < r31) {
const r50 = _ToString(r0);
const r53 = _HasProperty(r9, r50);
const r1 = r0;
if (r53) {
_CreateDataPropertyOrThrow(r44, r50, _Call(a0, r41, [_Get(r9, r50), r1, r9]));
}
r0 = r1 + 1;
}
return r44;
}
throw new TypeError("Array.prototype.map callback must be a function");
};