aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es6-map/lib/iterator.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
commitbbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch)
treec58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/es6-map/lib/iterator.js
parent003fb34971cf63466184351b4db5f7c67df4f444 (diff)
update packages
Diffstat (limited to 'node_modules/es6-map/lib/iterator.js')
-rw-r--r--node_modules/es6-map/lib/iterator.js38
1 files changed, 0 insertions, 38 deletions
diff --git a/node_modules/es6-map/lib/iterator.js b/node_modules/es6-map/lib/iterator.js
deleted file mode 100644
index 60f1e8c9e..000000000
--- a/node_modules/es6-map/lib/iterator.js
+++ /dev/null
@@ -1,38 +0,0 @@
-'use strict';
-
-var setPrototypeOf = require('es5-ext/object/set-prototype-of')
- , d = require('d')
- , Iterator = require('es6-iterator')
- , toStringTagSymbol = require('es6-symbol').toStringTag
- , kinds = require('./iterator-kinds')
-
- , defineProperties = Object.defineProperties
- , unBind = Iterator.prototype._unBind
- , MapIterator;
-
-MapIterator = module.exports = function (map, kind) {
- if (!(this instanceof MapIterator)) return new MapIterator(map, kind);
- Iterator.call(this, map.__mapKeysData__, map);
- if (!kind || !kinds[kind]) kind = 'key+value';
- defineProperties(this, {
- __kind__: d('', kind),
- __values__: d('w', map.__mapValuesData__)
- });
-};
-if (setPrototypeOf) setPrototypeOf(MapIterator, Iterator);
-
-MapIterator.prototype = Object.create(Iterator.prototype, {
- constructor: d(MapIterator),
- _resolve: d(function (i) {
- if (this.__kind__ === 'value') return this.__values__[i];
- if (this.__kind__ === 'key') return this.__list__[i];
- return [this.__list__[i], this.__values__[i]];
- }),
- _unBind: d(function () {
- this.__values__ = null;
- unBind.call(this);
- }),
- toString: d(function () { return '[object Map Iterator]'; })
-});
-Object.defineProperty(MapIterator.prototype, toStringTagSymbol,
- d('c', 'Map Iterator'));