File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1+ import Symbol from '@core-js/pure/es/symbol' ;
2+ import globalThis from '@core-js/pure/es/global-this' ;
13import assign from '@core-js/pure/es/object/assign' ;
24import isIterable from '@core-js/pure/es/is-iterable' ;
3- import ASYNC_ITERATOR from '@core-js/pure/es/symbol/async-iterator' ;
45import { is , arrayFromArrayLike } from './helpers.js' ;
56
7+ // for Babel / Regenerator runtime
8+ if ( ! globalThis . Symbol || [ ] [ globalThis . Symbol . iterator ] !== [ ] [ Symbol . iterator ] ) globalThis . Symbol = Symbol ;
9+
610const { getOwnPropertyDescriptor, getOwnPropertyNames } = Object ;
711const { toString, propertyIsEnumerable } = Object . prototype ;
812
@@ -46,7 +50,7 @@ assign(assert, {
4650 } ,
4751 isAsyncIterable ( actual , message = 'The value is async iterable' ) {
4852 this . pushResult ( {
49- result : typeof actual == 'object' && typeof actual [ ASYNC_ITERATOR ] == 'function' ,
53+ result : typeof actual == 'object' && typeof actual [ Symbol . asyncIterator ] == 'function' ,
5054 actual,
5155 expected : 'The value should be async iterable' ,
5256 message,
You can’t perform that action at this time.
0 commit comments