jiangping
2025-07-18 4c32c837290daa0a0ce8aac6a1472942e5876f29
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, []);
  }
});