MrShi
2025-04-23 c8b32b8bca79a116cfab70eb8c389907b664c9ca
1
2
3
4
5
6
7
8
9
10
11
'use strict';
var $ = require('../internals/export');
var $toArray = require('../internals/async-iterator-iteration').toArray;
 
// `AsyncIterator.prototype.toArray` method
// https://github.com/tc39/proposal-async-iterator-helpers
$({ target: 'AsyncIterator', proto: true, real: true }, {
  toArray: function toArray() {
    return $toArray(this, undefined, []);
  }
});