mirror of https://github.com/sveltejs/svelte
parent
9e9749a4bc
commit
523a3c7dfc
@ -1,15 +0,0 @@
|
||||
/**
|
||||
* @template T
|
||||
* @param {IterableIterator<T>} iterator
|
||||
*/
|
||||
export function make_iterable(iterator) {
|
||||
iterator[Symbol.iterator] = get_self;
|
||||
return iterator;
|
||||
}
|
||||
|
||||
/**
|
||||
* @this {any}
|
||||
*/
|
||||
function get_self() {
|
||||
return this;
|
||||
}
|
||||
Loading…
Reference in new issue