source: imaps-frontend/node_modules/core-js/modules/esnext.async-iterator.constructor.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 1.4 KB
Line 
1'use strict';
2var $ = require('../internals/export');
3var anInstance = require('../internals/an-instance');
4var getPrototypeOf = require('../internals/object-get-prototype-of');
5var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
6var hasOwn = require('../internals/has-own-property');
7var wellKnownSymbol = require('../internals/well-known-symbol');
8var AsyncIteratorPrototype = require('../internals/async-iterator-prototype');
9var IS_PURE = require('../internals/is-pure');
10
11var TO_STRING_TAG = wellKnownSymbol('toStringTag');
12
13var $TypeError = TypeError;
14
15var AsyncIteratorConstructor = function AsyncIterator() {
16 anInstance(this, AsyncIteratorPrototype);
17 if (getPrototypeOf(this) === AsyncIteratorPrototype) throw new $TypeError('Abstract class AsyncIterator not directly constructable');
18};
19
20AsyncIteratorConstructor.prototype = AsyncIteratorPrototype;
21
22if (!hasOwn(AsyncIteratorPrototype, TO_STRING_TAG)) {
23 createNonEnumerableProperty(AsyncIteratorPrototype, TO_STRING_TAG, 'AsyncIterator');
24}
25
26if (IS_PURE || !hasOwn(AsyncIteratorPrototype, 'constructor') || AsyncIteratorPrototype.constructor === Object) {
27 createNonEnumerableProperty(AsyncIteratorPrototype, 'constructor', AsyncIteratorConstructor);
28}
29
30// `AsyncIterator` constructor
31// https://github.com/tc39/proposal-async-iterator-helpers
32$({ global: true, constructor: true, forced: IS_PURE }, {
33 AsyncIterator: AsyncIteratorConstructor
34});
Note: See TracBrowser for help on using the repository browser.