decord/source/__polyfill/06xxx/module_6874.js
github-actions e510164e6b chore: update source for alpha 346.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
2026-09-10 05:38:07 +00:00

37 lines
1,005 B
JavaScript

// Module ID: 6874
// Function ID: 6875
// Dependencies: [6875]
// Module 6874
import _mod6875 from "module_6875" /* 6875 */;
export default function _unsupportedIterableToArray(str, arg1) {
if (str) {
if (typeof str === "string") {
return _mod6875(str, arg1);
} else {
const toString = {}.toString;
const call = toString.call;
const substr = typeof call === "unknown" ? toString() : call(str).slice(8, -1);
let name = substr;
if (tmp3) {
name = str.constructor.name;
}
if ("Map" !== name) {
if ("Set" !== name) {
if ("Arguments" === name) {
let arr2 = _mod6875(str, arg1);
} else {
const obj = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/;
}
}
return arr2;
}
const _Array = Array;
arr2 = Array.from(str);
const arr = typeof call === "unknown" ? toString() : call(str);
tmp3 = "Object" === substr && str.constructor;
}
}
};