File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11'use strict' ;
22
33var hasSymbols = require ( 'has-symbols' ) ;
4+ var GetIntrinsic = require ( 'get-intrinsic' ) ;
45
56/* globals AsyncIterator: false */
67
7- var asyncIterProto = typeof AsyncIterator === 'function' ? AsyncIterator . prototype : { } ;
8+ var asyncIterProto = typeof AsyncIterator === 'function' ? AsyncIterator . prototype : GetIntrinsic ( '%AsyncIteratorPrototype%' , true ) || { } ;
89
910if ( hasSymbols ( ) && Symbol . asyncIterator && ! ( Symbol . asyncIterator in asyncIterProto ) ) {
1011 asyncIterProto [ Symbol . asyncIterator ] = function ( ) {
Original file line number Diff line number Diff line change 4040 },
4141 "homepage" : " https://github.com/ljharb/AsyncIterator.prototype#readme" ,
4242 "dependencies" : {
43+ "get-intrinsic" : " ^1.2.4" ,
4344 "has-symbols" : " ^1.0.3"
4445 },
4546 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments