diff options
Diffstat (limited to 'node_modules/core-js/modules/esnext.async-iterator.constructor.js')
| -rw-r--r-- | node_modules/core-js/modules/esnext.async-iterator.constructor.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/node_modules/core-js/modules/esnext.async-iterator.constructor.js b/node_modules/core-js/modules/esnext.async-iterator.constructor.js deleted file mode 100644 index 5a1d4ad..0000000 --- a/node_modules/core-js/modules/esnext.async-iterator.constructor.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; -// https://github.com/tc39/proposal-iterator-helpers -var $ = require('../internals/export'); -var anInstance = require('../internals/an-instance'); -var createNonEnumerableProperty = require('../internals/create-non-enumerable-property'); -var has = require('../internals/has'); -var wellKnownSymbol = require('../internals/well-known-symbol'); -var AsyncIteratorPrototype = require('../internals/async-iterator-prototype'); -var IS_PURE = require('../internals/is-pure'); - -var TO_STRING_TAG = wellKnownSymbol('toStringTag'); - -var AsyncIteratorConstructor = function AsyncIterator() { - anInstance(this, AsyncIteratorConstructor); -}; - -AsyncIteratorConstructor.prototype = AsyncIteratorPrototype; - -if (!has(AsyncIteratorPrototype, TO_STRING_TAG)) { - createNonEnumerableProperty(AsyncIteratorPrototype, TO_STRING_TAG, 'AsyncIterator'); -} - -if (!has(AsyncIteratorPrototype, 'constructor') || AsyncIteratorPrototype.constructor === Object) { - createNonEnumerableProperty(AsyncIteratorPrototype, 'constructor', AsyncIteratorConstructor); -} - -$({ global: true, forced: IS_PURE }, { - AsyncIterator: AsyncIteratorConstructor -}); |
