decord/source/modules/app_database/util/Iterable.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

44 lines
1 KiB
TypeScript

// Module ID: 7534
// Function ID: 7535
// Name: Iterable
// Dependencies: [2]
// Exports: chain
// Module 7534 (Iterable)
import size from "module_2" /* 2 */;
class Chained {
constructor(arg0) {
obj = Object.create(new.target.prototype);
obj.index = 0;
obj.items = global;
return obj;
}
}
const prototype = Chained.prototype;
prototype[Symbol.iterator] = function() {
return this;
};
prototype["next"] = function next() {
const self = this;
if (this.index < this.items.length) {
const iter2 = self.items[self.index].next();
while (iter2.done) {
self.index = self.index + 1;
}
return iter2;
}
return { done: true, value: "a" };
};
const result = size.fileFinishedImporting("modules/app_database/util/Iterable.tsx");
export const chain = function chain() {
if (typeof Chained === "function") {
const obj = Object.create(Chained.prototype);
obj.index = 0;
obj.items = tmp;
return obj;
} else {
throw new TypeError("Trying to call a non-function");
}
};