decord/source/4565_ArraySpeciesCreate.js

41 lines
1.1 KiB
JavaScript
Raw Normal View History

2026-08-04 08:36:32 +00:00
// Module ID: 4565
// Function ID: 4566
2026-07-29 08:29:29 +00:00
// Name: ArraySpeciesCreate
2026-08-04 08:36:32 +00:00
// Dependencies: [540, 4566, 541, 4567, 4569, 4575, 4529, 4577]
2026-07-29 08:29:29 +00:00
2026-08-04 08:36:32 +00:00
// Module 4565 (ArraySpeciesCreate)
2026-07-29 08:29:29 +00:00
let closure_2 = require("getEvalledConstructor")("%Symbol.species%", true);
export default function ArraySpeciesCreate(arg0, arg1) {
2026-08-04 08:36:32 +00:00
if (require(4566) /* isInteger */(arg1)) {
2026-07-29 08:29:29 +00:00
if (arg1 >= 0) {
2026-08-04 08:36:32 +00:00
if (tmp(4567)(arg0)) {
const tmp3 = tmp(4575)(arg0, "constructor");
2026-07-29 08:29:29 +00:00
let tmp5 = closure_2;
if (closure_2) {
2026-08-04 08:36:32 +00:00
tmp5 = tmp(4529)(tmp3);
2026-07-29 08:29:29 +00:00
}
let tmp6 = tmp3;
if (tmp5) {
2026-08-04 08:36:32 +00:00
const tmp7 = tmp(4575)(tmp3, tmp4);
2026-07-29 08:29:29 +00:00
tmp5 = null === tmp7;
tmp6 = tmp7;
}
if (undefined === tmp6) {
2026-08-04 08:36:32 +00:00
return tmp(4569)(arg1);
} else if (tmp(4577)(tmp6)) {
2026-07-29 08:29:29 +00:00
tmp6 = new tmp6(arg1);
return tmp6;
} else {
const tmp11 = new tmp(541)("C must be a constructor");
throw tmp11;
}
tmp4 = closure_2;
} else {
2026-08-04 08:36:32 +00:00
return tmp(4569)(arg1);
2026-07-29 08:29:29 +00:00
}
}
}
throw new require(541)("Assertion failed: length must be an integer >= 0");
};