aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/esnext.iterator.constructor.js
diff options
context:
space:
mode:
authorPriyansh <[email protected]>2020-12-22 17:50:12 +0530
committerPriyansh <[email protected]>2020-12-22 17:50:12 +0530
commit22dc033f4938d6a19e086a1cbd36ec5cade5eaab (patch)
tree9feb963ccd5c1581e676e41004801abc67db3357 /node_modules/core-js/modules/esnext.iterator.constructor.js
parente93da8b04da86773247aadb1cbb1912e4f4526b2 (diff)
downloadstyx-22dc033f4938d6a19e086a1cbd36ec5cade5eaab.tar.xz
styx-22dc033f4938d6a19e086a1cbd36ec5cade5eaab.zip
Remove node_modules
Diffstat (limited to 'node_modules/core-js/modules/esnext.iterator.constructor.js')
-rw-r--r--node_modules/core-js/modules/esnext.iterator.constructor.js48
1 files changed, 0 insertions, 48 deletions
diff --git a/node_modules/core-js/modules/esnext.iterator.constructor.js b/node_modules/core-js/modules/esnext.iterator.constructor.js
deleted file mode 100644
index a481dff..0000000
--- a/node_modules/core-js/modules/esnext.iterator.constructor.js
+++ /dev/null
@@ -1,48 +0,0 @@
-'use strict';
-// https://github.com/tc39/proposal-iterator-helpers
-var $ = require('../internals/export');
-var global = require('../internals/global');
-var anInstance = require('../internals/an-instance');
-var createNonEnumerableProperty = require('../internals/create-non-enumerable-property');
-var fails = require('../internals/fails');
-var has = require('../internals/has');
-var wellKnownSymbol = require('../internals/well-known-symbol');
-var IteratorPrototype = require('../internals/iterators-core').IteratorPrototype;
-var IS_PURE = require('../internals/is-pure');
-
-var ITERATOR = wellKnownSymbol('iterator');
-var TO_STRING_TAG = wellKnownSymbol('toStringTag');
-
-var NativeIterator = global.Iterator;
-
-// FF56- have non-standard global helper `Iterator`
-var FORCED = IS_PURE
- || typeof NativeIterator != 'function'
- || NativeIterator.prototype !== IteratorPrototype
- // FF44- non-standard `Iterator` passes previous tests
- || !fails(function () { NativeIterator({}); });
-
-var IteratorConstructor = function Iterator() {
- anInstance(this, IteratorConstructor);
-};
-
-if (IS_PURE) {
- IteratorPrototype = {};
- createNonEnumerableProperty(IteratorPrototype, ITERATOR, function () {
- return this;
- });
-}
-
-if (!has(IteratorPrototype, TO_STRING_TAG)) {
- createNonEnumerableProperty(IteratorPrototype, TO_STRING_TAG, 'Iterator');
-}
-
-if (FORCED || !has(IteratorPrototype, 'constructor') || IteratorPrototype.constructor === Object) {
- createNonEnumerableProperty(IteratorPrototype, 'constructor', IteratorConstructor);
-}
-
-IteratorConstructor.prototype = IteratorPrototype;
-
-$({ global: true, forced: FORCED }, {
- Iterator: IteratorConstructor
-});