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