ohctechv3/.svn/pristine/74/74ba6da5a85f74e69f963f454e09f3720d6054f1.svn-base

16 lines
347 B
Plaintext
Raw Permalink Normal View History

2024-10-28 15:03:36 +05:30
'use strict';
var hasSymbols = require('has-symbols');
/* globals AsyncIterator: false */
var asyncIterProto = typeof AsyncIterator === 'function' ? AsyncIterator.prototype : {};
if (hasSymbols() && !(Symbol.iterator in asyncIterProto)) {
asyncIterProto[Symbol.iterator] = function () {
return this;
};
}
module.exports = asyncIterProto;