decord/source/4413_ArraySpeciesCreate.js

45 lines
1.4 KiB
JavaScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 4413
2026-07-27 11:26:19 +00:00
// Function ID: 38893
2026-07-23 10:11:24 +00:00
// Name: ArraySpeciesCreate
2026-07-25 08:10:48 +00:00
// Dependencies: [517, 4414, 518, 4415, 4417, 4423, 4377, 4425]
2026-07-23 10:11:24 +00:00
2026-07-25 08:10:48 +00:00
// Module 4413 (ArraySpeciesCreate)
2026-07-23 10:11:24 +00:00
let closure_2 = require("getEvalledConstructor")("%Symbol.species%", true);
export default function ArraySpeciesCreate(arg0, arg1) {
2026-07-25 08:10:48 +00:00
if (require(4414) /* isInteger */(arg1)) {
2026-07-23 10:11:24 +00:00
if (arg1 >= 0) {
2026-07-25 08:10:48 +00:00
if (require(4415) /* getEvalledConstructor */(arg0)) {
const tmp = tmp31(4423)(arg0, "constructor");
2026-07-23 10:11:24 +00:00
let tmp2 = closure_2;
if (closure_2) {
2026-07-25 08:10:48 +00:00
tmp2 = require(4377) /* isObject */(tmp);
2026-07-23 10:11:24 +00:00
}
let tmp5 = tmp;
if (tmp2) {
2026-07-25 08:10:48 +00:00
const tmp9 = require(4423) /* Get */(tmp, closure_2);
2026-07-23 10:11:24 +00:00
tmp2 = null === tmp9;
tmp5 = tmp9;
}
if (undefined === tmp5) {
2026-07-25 08:10:48 +00:00
return require(4417) /* ArrayCreate */(arg1);
} else if (require(4425) /* getEvalledConstructor */(tmp5)) {
2026-07-23 10:11:24 +00:00
const prototype2 = tmp5.prototype;
tmp5 = new tmp5(arg1);
return tmp5;
} else {
let tmp15 = require(518);
const prototype = tmp15.prototype;
tmp15 = new tmp15("C must be a constructor");
throw tmp15;
}
} else {
2026-07-25 08:10:48 +00:00
return tmp31(4417)(arg1);
2026-07-23 10:11:24 +00:00
}
}
}
let tmp27 = require(518);
tmp27 = new tmp27("Assertion failed: length must be an integer >= 0");
throw tmp27;
};