qauMaWeb/node_modules/core-js/modules/esnext.async-iterator.to-ar...

11 lines
335 B
JavaScript
Raw Permalink Normal View History

2024-10-13 18:02:27 +08:00
'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var $ = require('../internals/export');
var $toArray = require('../internals/async-iterator-iteration').toArray;
$({ target: 'AsyncIterator', proto: true, real: true, forced: true }, {
toArray: function toArray() {
return $toArray(this, undefined, []);
}
});