aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es6-iterator
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-12-10 21:51:33 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-12-10 21:51:33 +0100
commit0469abd4a9c9270a1fdc962969e36e63699af8b4 (patch)
treef9864d4a4148621378958794cbbfdc2393733283 /node_modules/es6-iterator
parent6947e79bbc258f7bc96af424ddb71a511f0c15a3 (diff)
downloadwallet-core-0469abd4a9c9270a1fdc962969e36e63699af8b4.tar.xz
upgrade dependencies
Diffstat (limited to 'node_modules/es6-iterator')
-rw-r--r--node_modules/es6-iterator/#/chain.js14
-rw-r--r--node_modules/es6-iterator/.editorconfig14
-rw-r--r--node_modules/es6-iterator/.lint11
-rw-r--r--node_modules/es6-iterator/.npmignore12
-rw-r--r--node_modules/es6-iterator/.travis.yml13
-rw-r--r--node_modules/es6-iterator/CHANGELOG.md27
-rw-r--r--node_modules/es6-iterator/CHANGES6
-rw-r--r--node_modules/es6-iterator/LICENSE2
-rw-r--r--node_modules/es6-iterator/appveyor.yml26
-rw-r--r--node_modules/es6-iterator/array.js38
-rw-r--r--node_modules/es6-iterator/for-of.js39
-rw-r--r--node_modules/es6-iterator/get.js16
-rw-r--r--node_modules/es6-iterator/index.js174
-rw-r--r--node_modules/es6-iterator/is-iterable.js15
-rw-r--r--node_modules/es6-iterator/package.json24
-rw-r--r--node_modules/es6-iterator/string.js30
-rw-r--r--node_modules/es6-iterator/test/#/chain.js28
-rw-r--r--node_modules/es6-iterator/test/.eslintrc.json5
-rw-r--r--node_modules/es6-iterator/test/array.js58
-rw-r--r--node_modules/es6-iterator/test/for-of.js28
-rw-r--r--node_modules/es6-iterator/test/get.js30
-rw-r--r--node_modules/es6-iterator/test/index.js108
-rw-r--r--node_modules/es6-iterator/test/is-iterable.js18
-rw-r--r--node_modules/es6-iterator/test/string.js26
-rw-r--r--node_modules/es6-iterator/test/valid-iterable.js28
-rw-r--r--node_modules/es6-iterator/valid-iterable.js4
26 files changed, 454 insertions, 340 deletions
diff --git a/node_modules/es6-iterator/#/chain.js b/node_modules/es6-iterator/#/chain.js
index 6dc1543b3..190a3464e 100644
--- a/node_modules/es6-iterator/#/chain.js
+++ b/node_modules/es6-iterator/#/chain.js
@@ -1,9 +1,9 @@
-'use strict';
+"use strict";
-var setPrototypeOf = require('es5-ext/object/set-prototype-of')
- , d = require('d')
- , Iterator = require('../')
- , validIterable = require('../valid-iterable')
+var setPrototypeOf = require("es5-ext/object/set-prototype-of")
+ , d = require("d")
+ , Iterator = require("../")
+ , validIterable = require("../valid-iterable")
, push = Array.prototype.push
, defineProperties = Object.defineProperties
@@ -11,8 +11,8 @@ var setPrototypeOf = require('es5-ext/object/set-prototype-of')
IteratorChain = function (iterators) {
defineProperties(this, {
- __iterators__: d('', iterators),
- __current__: d('w', iterators.shift())
+ __iterators__: d("", iterators),
+ __current__: d("w", iterators.shift())
});
};
if (setPrototypeOf) setPrototypeOf(IteratorChain, Iterator);
diff --git a/node_modules/es6-iterator/.editorconfig b/node_modules/es6-iterator/.editorconfig
new file mode 100644
index 000000000..c24a6cd1f
--- /dev/null
+++ b/node_modules/es6-iterator/.editorconfig
@@ -0,0 +1,14 @@
+# EditorConfig is awesome: http://EditorConfig.org
+
+# top-most EditorConfig file
+root = true
+
+# Unix-style newlines with a newline ending every file
+[*]
+end_of_line = lf
+insert_final_newline = true
+indent_style = tab
+
+[{*.json,*.yml}]
+indent_style = space
+indent_size = 2
diff --git a/node_modules/es6-iterator/.lint b/node_modules/es6-iterator/.lint
deleted file mode 100644
index cf54d8156..000000000
--- a/node_modules/es6-iterator/.lint
+++ /dev/null
@@ -1,11 +0,0 @@
-@root
-
-module
-
-tabs
-indent 2
-maxlen 100
-
-ass
-nomen
-plusplus
diff --git a/node_modules/es6-iterator/.npmignore b/node_modules/es6-iterator/.npmignore
index 155e41f69..a91db6550 100644
--- a/node_modules/es6-iterator/.npmignore
+++ b/node_modules/es6-iterator/.npmignore
@@ -1,4 +1,12 @@
.DS_Store
+Thumbs.db
+/.idea
+/.vscode
+npm-debug.log
+/wallaby.js
/node_modules
-/npm-debug.log
-/.lintcache
+/.travis.yml
+/.gitignore
+/.circle.yml
+/.circleci
+/.appveyor.yml
diff --git a/node_modules/es6-iterator/.travis.yml b/node_modules/es6-iterator/.travis.yml
deleted file mode 100644
index f1a40dbf6..000000000
--- a/node_modules/es6-iterator/.travis.yml
+++ /dev/null
@@ -1,13 +0,0 @@
-sudo: false # http://docs.travis-ci.com/user/workers/container-based-infrastructure/
-language: node_js
-node_js:
- - 0.12
- - 4
- - 6
- - 7
-
-notifications:
- email:
- - medikoo+es6-iterator@medikoo.com
-
-script: "npm test && npm run lint"
diff --git a/node_modules/es6-iterator/CHANGELOG.md b/node_modules/es6-iterator/CHANGELOG.md
new file mode 100644
index 000000000..37eb16abe
--- /dev/null
+++ b/node_modules/es6-iterator/CHANGELOG.md
@@ -0,0 +1,27 @@
+# Change Log
+
+All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
+
+<a name="2.0.3"></a>
+## [2.0.3](https://github.com/medikoo/es6-iterator/compare/v2.0.2...v2.0.3) (2017-10-17)
+
+
+### Bug Fixes
+
+* configurability of toStringTag ([b99f692](https://github.com/medikoo/es6-iterator/commit/b99f692))
+
+
+
+<a name="2.0.2"></a>
+## [2.0.2](https://github.com/medikoo/es6-iterator/compare/v2.0.1...v2.0.2) (2017-10-17)
+
+
+### Bug Fixes
+
+* constructor exposure ([dbc0c51](https://github.com/medikoo/es6-iterator/commit/dbc0c51))
+* do not allow non constructor calls ([1f2f800](https://github.com/medikoo/es6-iterator/commit/1f2f800))
+* toString and toStringTag symbol definitions. ([2d17786](https://github.com/medikoo/es6-iterator/commit/2d17786)), closes [#6](https://github.com/medikoo/es6-iterator/issues/6)
+
+## Changelog for previous versions
+
+See `CHANGES` file
diff --git a/node_modules/es6-iterator/CHANGES b/node_modules/es6-iterator/CHANGES
index 05fec6e7f..83095f7ce 100644
--- a/node_modules/es6-iterator/CHANGES
+++ b/node_modules/es6-iterator/CHANGES
@@ -1,3 +1,7 @@
+For recent changelog see CHANGELOG.md
+
+-----
+
v2.0.1 -- 2017.03.15
* Update dependencies
@@ -35,4 +39,4 @@ v0.1.0 -- 2014.04.29
* Update to use latest version of dependencies
v0.0.0 -- 2013.10.12
-Initial (dev version) \ No newline at end of file
+Initial (dev version)
diff --git a/node_modules/es6-iterator/LICENSE b/node_modules/es6-iterator/LICENSE
index 5d87e598b..d7c36d558 100644
--- a/node_modules/es6-iterator/LICENSE
+++ b/node_modules/es6-iterator/LICENSE
@@ -1,6 +1,6 @@
The MIT License (MIT)
-Copyright (C) 2013-2015 Mariusz Nowak (www.medikoo.com)
+Copyright (C) 2013-2017 Mariusz Nowak (www.medikoo.com)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/node_modules/es6-iterator/appveyor.yml b/node_modules/es6-iterator/appveyor.yml
new file mode 100644
index 000000000..942ab8278
--- /dev/null
+++ b/node_modules/es6-iterator/appveyor.yml
@@ -0,0 +1,26 @@
+# Test against the latest version of this Node.js version
+environment:
+ matrix:
+ # node.js
+ - nodejs_version: "0.12"
+ - nodejs_version: "4"
+ - nodejs_version: "6"
+ - nodejs_version: "8"
+
+# Install scripts. (runs after repo cloning)
+install:
+ # Get the latest stable version of Node.js or io.js
+ - ps: Install-Product node $env:nodejs_version
+ # install modules
+ - npm install
+
+# Post-install test scripts.
+test_script:
+ # Output useful info for debugging.
+ - node --version
+ - npm --version
+ # run tests
+ - npm test
+
+# Don't actually build.
+build: off
diff --git a/node_modules/es6-iterator/array.js b/node_modules/es6-iterator/array.js
index 885ad0a4f..d7a46a481 100644
--- a/node_modules/es6-iterator/array.js
+++ b/node_modules/es6-iterator/array.js
@@ -1,30 +1,32 @@
-'use strict';
+"use strict";
-var setPrototypeOf = require('es5-ext/object/set-prototype-of')
- , contains = require('es5-ext/string/#/contains')
- , d = require('d')
- , Iterator = require('./')
+var setPrototypeOf = require("es5-ext/object/set-prototype-of")
+ , contains = require("es5-ext/string/#/contains")
+ , d = require("d")
+ , Symbol = require("es6-symbol")
+ , Iterator = require("./");
- , defineProperty = Object.defineProperty
- , ArrayIterator;
+var defineProperty = Object.defineProperty, ArrayIterator;
ArrayIterator = module.exports = function (arr, kind) {
- if (!(this instanceof ArrayIterator)) return new ArrayIterator(arr, kind);
+ if (!(this instanceof ArrayIterator)) throw new TypeError("Constructor requires 'new'");
Iterator.call(this, arr);
- if (!kind) kind = 'value';
- else if (contains.call(kind, 'key+value')) kind = 'key+value';
- else if (contains.call(kind, 'key')) kind = 'key';
- else kind = 'value';
- defineProperty(this, '__kind__', d('', kind));
+ if (!kind) kind = "value";
+ else if (contains.call(kind, "key+value")) kind = "key+value";
+ else if (contains.call(kind, "key")) kind = "key";
+ else kind = "value";
+ defineProperty(this, "__kind__", d("", kind));
};
if (setPrototypeOf) setPrototypeOf(ArrayIterator, Iterator);
+// Internal %ArrayIteratorPrototype% doesn't expose its constructor
+delete ArrayIterator.prototype.constructor;
+
ArrayIterator.prototype = Object.create(Iterator.prototype, {
- constructor: d(ArrayIterator),
_resolve: d(function (i) {
- if (this.__kind__ === 'value') return this.__list__[i];
- if (this.__kind__ === 'key+value') return [i, this.__list__[i]];
+ if (this.__kind__ === "value") return this.__list__[i];
+ if (this.__kind__ === "key+value") return [i, this.__list__[i]];
return i;
- }),
- toString: d(function () { return '[object Array Iterator]'; })
+ })
});
+defineProperty(ArrayIterator.prototype, Symbol.toStringTag, d("c", "Array Iterator"));
diff --git a/node_modules/es6-iterator/for-of.js b/node_modules/es6-iterator/for-of.js
index c7a28411d..5d15c349f 100644
--- a/node_modules/es6-iterator/for-of.js
+++ b/node_modules/es6-iterator/for-of.js
@@ -1,35 +1,36 @@
-'use strict';
+"use strict";
-var isArguments = require('es5-ext/function/is-arguments')
- , callable = require('es5-ext/object/valid-callable')
- , isString = require('es5-ext/string/is-string')
- , get = require('./get')
+var isArguments = require("es5-ext/function/is-arguments")
+ , callable = require("es5-ext/object/valid-callable")
+ , isString = require("es5-ext/string/is-string")
+ , get = require("./get");
- , isArray = Array.isArray, call = Function.prototype.call
- , some = Array.prototype.some;
+var isArray = Array.isArray, call = Function.prototype.call, some = Array.prototype.some;
-module.exports = function (iterable, cb/*, thisArg*/) {
- var mode, thisArg = arguments[2], result, doBreak, broken, i, l, char, code;
- if (isArray(iterable) || isArguments(iterable)) mode = 'array';
- else if (isString(iterable)) mode = 'string';
+module.exports = function (iterable, cb /*, thisArg*/) {
+ var mode, thisArg = arguments[2], result, doBreak, broken, i, length, char, code;
+ if (isArray(iterable) || isArguments(iterable)) mode = "array";
+ else if (isString(iterable)) mode = "string";
else iterable = get(iterable);
callable(cb);
- doBreak = function () { broken = true; };
- if (mode === 'array') {
+ doBreak = function () {
+ broken = true;
+ };
+ if (mode === "array") {
some.call(iterable, function (value) {
call.call(cb, thisArg, value, doBreak);
- if (broken) return true;
+ return broken;
});
return;
}
- if (mode === 'string') {
- l = iterable.length;
- for (i = 0; i < l; ++i) {
+ if (mode === "string") {
+ length = iterable.length;
+ for (i = 0; i < length; ++i) {
char = iterable[i];
- if ((i + 1) < l) {
+ if (i + 1 < length) {
code = char.charCodeAt(0);
- if ((code >= 0xD800) && (code <= 0xDBFF)) char += iterable[++i];
+ if (code >= 0xd800 && code <= 0xdbff) char += iterable[++i];
}
call.call(cb, thisArg, char, doBreak);
if (broken) break;
diff --git a/node_modules/es6-iterator/get.js b/node_modules/es6-iterator/get.js
index 7c7e052b1..d36c9e247 100644
--- a/node_modules/es6-iterator/get.js
+++ b/node_modules/es6-iterator/get.js
@@ -1,14 +1,14 @@
-'use strict';
+"use strict";
-var isArguments = require('es5-ext/function/is-arguments')
- , isString = require('es5-ext/string/is-string')
- , ArrayIterator = require('./array')
- , StringIterator = require('./string')
- , iterable = require('./valid-iterable')
- , iteratorSymbol = require('es6-symbol').iterator;
+var isArguments = require("es5-ext/function/is-arguments")
+ , isString = require("es5-ext/string/is-string")
+ , ArrayIterator = require("./array")
+ , StringIterator = require("./string")
+ , iterable = require("./valid-iterable")
+ , iteratorSymbol = require("es6-symbol").iterator;
module.exports = function (obj) {
- if (typeof iterable(obj)[iteratorSymbol] === 'function') return obj[iteratorSymbol]();
+ if (typeof iterable(obj)[iteratorSymbol] === "function") return obj[iteratorSymbol]();
if (isArguments(obj)) return new ArrayIterator(obj);
if (isString(obj)) return new StringIterator(obj);
return new ArrayIterator(obj);
diff --git a/node_modules/es6-iterator/index.js b/node_modules/es6-iterator/index.js
index 10fd08958..790475fdd 100644
--- a/node_modules/es6-iterator/index.js
+++ b/node_modules/es6-iterator/index.js
@@ -1,90 +1,106 @@
-'use strict';
+"use strict";
-var clear = require('es5-ext/array/#/clear')
- , assign = require('es5-ext/object/assign')
- , callable = require('es5-ext/object/valid-callable')
- , value = require('es5-ext/object/valid-value')
- , d = require('d')
- , autoBind = require('d/auto-bind')
- , Symbol = require('es6-symbol')
+var clear = require("es5-ext/array/#/clear")
+ , assign = require("es5-ext/object/assign")
+ , callable = require("es5-ext/object/valid-callable")
+ , value = require("es5-ext/object/valid-value")
+ , d = require("d")
+ , autoBind = require("d/auto-bind")
+ , Symbol = require("es6-symbol");
- , defineProperty = Object.defineProperty
- , defineProperties = Object.defineProperties
- , Iterator;
+var defineProperty = Object.defineProperty, defineProperties = Object.defineProperties, Iterator;
module.exports = Iterator = function (list, context) {
- if (!(this instanceof Iterator)) return new Iterator(list, context);
+ if (!(this instanceof Iterator)) throw new TypeError("Constructor requires 'new'");
defineProperties(this, {
- __list__: d('w', value(list)),
- __context__: d('w', context),
- __nextIndex__: d('w', 0)
+ __list__: d("w", value(list)),
+ __context__: d("w", context),
+ __nextIndex__: d("w", 0)
});
if (!context) return;
callable(context.on);
- context.on('_add', this._onAdd);
- context.on('_delete', this._onDelete);
- context.on('_clear', this._onClear);
+ context.on("_add", this._onAdd);
+ context.on("_delete", this._onDelete);
+ context.on("_clear", this._onClear);
};
-defineProperties(Iterator.prototype, assign({
- constructor: d(Iterator),
- _next: d(function () {
- var i;
- if (!this.__list__) return;
- if (this.__redo__) {
- i = this.__redo__.shift();
- if (i !== undefined) return i;
- }
- if (this.__nextIndex__ < this.__list__.length) return this.__nextIndex__++;
- this._unBind();
- }),
- next: d(function () { return this._createResult(this._next()); }),
- _createResult: d(function (i) {
- if (i === undefined) return { done: true, value: undefined };
- return { done: false, value: this._resolve(i) };
- }),
- _resolve: d(function (i) { return this.__list__[i]; }),
- _unBind: d(function () {
- this.__list__ = null;
- delete this.__redo__;
- if (!this.__context__) return;
- this.__context__.off('_add', this._onAdd);
- this.__context__.off('_delete', this._onDelete);
- this.__context__.off('_clear', this._onClear);
- this.__context__ = null;
- }),
- toString: d(function () { return '[object Iterator]'; })
-}, autoBind({
- _onAdd: d(function (index) {
- if (index >= this.__nextIndex__) return;
- ++this.__nextIndex__;
- if (!this.__redo__) {
- defineProperty(this, '__redo__', d('c', [index]));
- return;
- }
- this.__redo__.forEach(function (redo, i) {
- if (redo >= index) this.__redo__[i] = ++redo;
- }, this);
- this.__redo__.push(index);
- }),
- _onDelete: d(function (index) {
- var i;
- if (index >= this.__nextIndex__) return;
- --this.__nextIndex__;
- if (!this.__redo__) return;
- i = this.__redo__.indexOf(index);
- if (i !== -1) this.__redo__.splice(i, 1);
- this.__redo__.forEach(function (redo, i) {
- if (redo > index) this.__redo__[i] = --redo;
- }, this);
- }),
- _onClear: d(function () {
- if (this.__redo__) clear.call(this.__redo__);
- this.__nextIndex__ = 0;
- })
-})));
+// Internal %IteratorPrototype% doesn't expose its constructor
+delete Iterator.prototype.constructor;
+
+defineProperties(
+ Iterator.prototype,
+ assign(
+ {
+ _next: d(function () {
+ var i;
+ if (!this.__list__) return undefined;
+ if (this.__redo__) {
+ i = this.__redo__.shift();
+ if (i !== undefined) return i;
+ }
+ if (this.__nextIndex__ < this.__list__.length) return this.__nextIndex__++;
+ this._unBind();
+ return undefined;
+ }),
+ next: d(function () {
+ return this._createResult(this._next());
+ }),
+ _createResult: d(function (i) {
+ if (i === undefined) return { done: true, value: undefined };
+ return { done: false, value: this._resolve(i) };
+ }),
+ _resolve: d(function (i) {
+ return this.__list__[i];
+ }),
+ _unBind: d(function () {
+ this.__list__ = null;
+ delete this.__redo__;
+ if (!this.__context__) return;
+ this.__context__.off("_add", this._onAdd);
+ this.__context__.off("_delete", this._onDelete);
+ this.__context__.off("_clear", this._onClear);
+ this.__context__ = null;
+ }),
+ toString: d(function () {
+ return "[object " + (this[Symbol.toStringTag] || "Object") + "]";
+ })
+ },
+ autoBind({
+ _onAdd: d(function (index) {
+ if (index >= this.__nextIndex__) return;
+ ++this.__nextIndex__;
+ if (!this.__redo__) {
+ defineProperty(this, "__redo__", d("c", [index]));
+ return;
+ }
+ this.__redo__.forEach(function (redo, i) {
+ if (redo >= index) this.__redo__[i] = ++redo;
+ }, this);
+ this.__redo__.push(index);
+ }),
+ _onDelete: d(function (index) {
+ var i;
+ if (index >= this.__nextIndex__) return;
+ --this.__nextIndex__;
+ if (!this.__redo__) return;
+ i = this.__redo__.indexOf(index);
+ if (i !== -1) this.__redo__.splice(i, 1);
+ this.__redo__.forEach(function (redo, j) {
+ if (redo > index) this.__redo__[j] = --redo;
+ }, this);
+ }),
+ _onClear: d(function () {
+ if (this.__redo__) clear.call(this.__redo__);
+ this.__nextIndex__ = 0;
+ })
+ })
+ )
+);
-defineProperty(Iterator.prototype, Symbol.iterator, d(function () {
- return this;
-}));
-defineProperty(Iterator.prototype, Symbol.toStringTag, d('', 'Iterator'));
+defineProperty(
+ Iterator.prototype,
+ Symbol.iterator,
+ d(function () {
+ return this;
+ })
+);
diff --git a/node_modules/es6-iterator/is-iterable.js b/node_modules/es6-iterator/is-iterable.js
index 2c6f496c3..cda7dfeb3 100644
--- a/node_modules/es6-iterator/is-iterable.js
+++ b/node_modules/es6-iterator/is-iterable.js
@@ -1,15 +1,16 @@
-'use strict';
+"use strict";
-var isArguments = require('es5-ext/function/is-arguments')
- , isString = require('es5-ext/string/is-string')
- , iteratorSymbol = require('es6-symbol').iterator
+var isArguments = require("es5-ext/function/is-arguments")
+ , isValue = require("es5-ext/object/is-value")
+ , isString = require("es5-ext/string/is-string");
- , isArray = Array.isArray;
+var iteratorSymbol = require("es6-symbol").iterator
+ , isArray = Array.isArray;
module.exports = function (value) {
- if (value == null) return false;
+ if (!isValue(value)) return false;
if (isArray(value)) return true;
if (isString(value)) return true;
if (isArguments(value)) return true;
- return (typeof value[iteratorSymbol] === 'function');
+ return typeof value[iteratorSymbol] === "function";
};
diff --git a/node_modules/es6-iterator/package.json b/node_modules/es6-iterator/package.json
index e182bbb75..bc2582abb 100644
--- a/node_modules/es6-iterator/package.json
+++ b/node_modules/es6-iterator/package.json
@@ -1,6 +1,6 @@
{
"name": "es6-iterator",
- "version": "2.0.1",
+ "version": "2.0.3",
"description": "Iterator abstraction based on ES6 specification",
"author": "Mariusz Nowak <medyk@medikoo.com> (http://www.medikoo.com/)",
"keywords": [
@@ -17,18 +17,24 @@
},
"dependencies": {
"d": "1",
- "es5-ext": "^0.10.14",
- "es6-symbol": "^3.1"
+ "es5-ext": "^0.10.35",
+ "es6-symbol": "^3.1.1"
},
"devDependencies": {
- "event-emitter": "^0.3.4",
- "tad": "^0.2.7",
- "xlint": "^0.2.2",
- "xlint-jslint-medikoo": "^0.1.4"
+ "eslint": "^4.9",
+ "eslint-config-medikoo-es5": "^1.4.4",
+ "event-emitter": "^0.3.5",
+ "tad": "^0.2.7"
+ },
+ "eslintConfig": {
+ "extends": "medikoo-es5",
+ "root": true,
+ "rules": {
+ "no-extend-native": "off"
+ }
},
"scripts": {
- "lint": "node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --no-cache --no-stream",
- "lint-console": "node node_modules/xlint/bin/xlint --linter=node_modules/xlint-jslint-medikoo/index.js --watch",
+ "lint": "eslint --ignore-path=.gitignore .",
"test": "node ./node_modules/tad/bin/tad"
},
"license": "MIT"
diff --git a/node_modules/es6-iterator/string.js b/node_modules/es6-iterator/string.js
index cdb39ea4e..48882252b 100644
--- a/node_modules/es6-iterator/string.js
+++ b/node_modules/es6-iterator/string.js
@@ -1,37 +1,39 @@
// Thanks @mathiasbynens
// http://mathiasbynens.be/notes/javascript-unicode#iterating-over-symbols
-'use strict';
+"use strict";
-var setPrototypeOf = require('es5-ext/object/set-prototype-of')
- , d = require('d')
- , Iterator = require('./')
+var setPrototypeOf = require("es5-ext/object/set-prototype-of")
+ , d = require("d")
+ , Symbol = require("es6-symbol")
+ , Iterator = require("./");
- , defineProperty = Object.defineProperty
- , StringIterator;
+var defineProperty = Object.defineProperty, StringIterator;
StringIterator = module.exports = function (str) {
- if (!(this instanceof StringIterator)) return new StringIterator(str);
+ if (!(this instanceof StringIterator)) throw new TypeError("Constructor requires 'new'");
str = String(str);
Iterator.call(this, str);
- defineProperty(this, '__length__', d('', str.length));
-
+ defineProperty(this, "__length__", d("", str.length));
};
if (setPrototypeOf) setPrototypeOf(StringIterator, Iterator);
+// Internal %ArrayIteratorPrototype% doesn't expose its constructor
+delete StringIterator.prototype.constructor;
+
StringIterator.prototype = Object.create(Iterator.prototype, {
- constructor: d(StringIterator),
_next: d(function () {
- if (!this.__list__) return;
+ if (!this.__list__) return undefined;
if (this.__nextIndex__ < this.__length__) return this.__nextIndex__++;
this._unBind();
+ return undefined;
}),
_resolve: d(function (i) {
var char = this.__list__[i], code;
if (this.__nextIndex__ === this.__length__) return char;
code = char.charCodeAt(0);
- if ((code >= 0xD800) && (code <= 0xDBFF)) return char + this.__list__[this.__nextIndex__++];
+ if (code >= 0xd800 && code <= 0xdbff) return char + this.__list__[this.__nextIndex__++];
return char;
- }),
- toString: d(function () { return '[object String Iterator]'; })
+ })
});
+defineProperty(StringIterator.prototype, Symbol.toStringTag, d("c", "String Iterator"));
diff --git a/node_modules/es6-iterator/test/#/chain.js b/node_modules/es6-iterator/test/#/chain.js
index a414c66d7..457356f2f 100644
--- a/node_modules/es6-iterator/test/#/chain.js
+++ b/node_modules/es6-iterator/test/#/chain.js
@@ -1,23 +1,23 @@
-'use strict';
+"use strict";
-var Iterator = require('../../');
+var Iterator = require("../../");
module.exports = function (t, a) {
- var i1 = new Iterator(['raz', 'dwa', 'trzy'])
- , i2 = new Iterator(['cztery', 'pięć', 'sześć'])
- , i3 = new Iterator(['siedem', 'osiem', 'dziewięć'])
+ var i1 = new Iterator(["raz", "dwa", "trzy"])
+ , i2 = new Iterator(["cztery", "pięć", "sześć"])
+ , i3 = new Iterator(["siedem", "osiem", "dziewięć"])
, iterator = t.call(i1, i2, i3);
- a.deep(iterator.next(), { done: false, value: 'raz' }, "#1");
- a.deep(iterator.next(), { done: false, value: 'dwa' }, "#2");
- a.deep(iterator.next(), { done: false, value: 'trzy' }, "#3");
- a.deep(iterator.next(), { done: false, value: 'cztery' }, "#4");
- a.deep(iterator.next(), { done: false, value: 'pięć' }, "#5");
- a.deep(iterator.next(), { done: false, value: 'sześć' }, "#6");
- a.deep(iterator.next(), { done: false, value: 'siedem' }, "#7");
- a.deep(iterator.next(), { done: false, value: 'osiem' }, "#8");
- a.deep(iterator.next(), { done: false, value: 'dziewięć' }, "#9");
+ a.deep(iterator.next(), { done: false, value: "raz" }, "#1");
+ a.deep(iterator.next(), { done: false, value: "dwa" }, "#2");
+ a.deep(iterator.next(), { done: false, value: "trzy" }, "#3");
+ a.deep(iterator.next(), { done: false, value: "cztery" }, "#4");
+ a.deep(iterator.next(), { done: false, value: "pięć" }, "#5");
+ a.deep(iterator.next(), { done: false, value: "sześć" }, "#6");
+ a.deep(iterator.next(), { done: false, value: "siedem" }, "#7");
+ a.deep(iterator.next(), { done: false, value: "osiem" }, "#8");
+ a.deep(iterator.next(), { done: false, value: "dziewięć" }, "#9");
a.deep(iterator.next(), { done: true, value: undefined }, "Done #1");
a.deep(iterator.next(), { done: true, value: undefined }, "Done #2");
};
diff --git a/node_modules/es6-iterator/test/.eslintrc.json b/node_modules/es6-iterator/test/.eslintrc.json
new file mode 100644
index 000000000..99f0b6553
--- /dev/null
+++ b/node_modules/es6-iterator/test/.eslintrc.json
@@ -0,0 +1,5 @@
+{
+ "rules": {
+ "id-length": "off"
+ }
+}
diff --git a/node_modules/es6-iterator/test/array.js b/node_modules/es6-iterator/test/array.js
index ae7c2199e..447dfa732 100644
--- a/node_modules/es6-iterator/test/array.js
+++ b/node_modules/es6-iterator/test/array.js
@@ -1,47 +1,47 @@
-'use strict';
+"use strict";
-var iteratorSymbol = require('es6-symbol').iterator;
+var iteratorSymbol = require("es6-symbol").iterator;
module.exports = function (T) {
return {
- Values: function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], it;
+ "Values": function (a) {
+ var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], it;
it = new T(x);
a(it[iteratorSymbol](), it, "@@iterator");
- a.deep(it.next(), { done: false, value: 'raz' }, "#1");
- a.deep(it.next(), { done: false, value: 'dwa' }, "#2");
- x.splice(1, 0, 'elo');
- a.deep(it.next(), { done: false, value: 'dwa' }, "Insert");
- a.deep(it.next(), { done: false, value: 'trzy' }, "#3");
- a.deep(it.next(), { done: false, value: 'cztery' }, "#4");
+ a.deep(it.next(), { done: false, value: "raz" }, "#1");
+ a.deep(it.next(), { done: false, value: "dwa" }, "#2");
+ x.splice(1, 0, "elo");
+ a.deep(it.next(), { done: false, value: "dwa" }, "Insert");
+ a.deep(it.next(), { done: false, value: "trzy" }, "#3");
+ a.deep(it.next(), { done: false, value: "cztery" }, "#4");
x.pop();
- a.deep(it.next(), { done: false, value: 'pięć' }, "#5");
+ a.deep(it.next(), { done: false, value: "pięć" }, "#5");
a.deep(it.next(), { done: true, value: undefined }, "End");
},
"Keys & Values": function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], it;
+ var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], it;
- it = new T(x, 'key+value');
+ it = new T(x, "key+value");
a(it[iteratorSymbol](), it, "@@iterator");
- a.deep(it.next(), { done: false, value: [0, 'raz'] }, "#1");
- a.deep(it.next(), { done: false, value: [1, 'dwa'] }, "#2");
- x.splice(1, 0, 'elo');
- a.deep(it.next(), { done: false, value: [2, 'dwa'] }, "Insert");
- a.deep(it.next(), { done: false, value: [3, 'trzy'] }, "#3");
- a.deep(it.next(), { done: false, value: [4, 'cztery'] }, "#4");
+ a.deep(it.next(), { done: false, value: [0, "raz"] }, "#1");
+ a.deep(it.next(), { done: false, value: [1, "dwa"] }, "#2");
+ x.splice(1, 0, "elo");
+ a.deep(it.next(), { done: false, value: [2, "dwa"] }, "Insert");
+ a.deep(it.next(), { done: false, value: [3, "trzy"] }, "#3");
+ a.deep(it.next(), { done: false, value: [4, "cztery"] }, "#4");
x.pop();
- a.deep(it.next(), { done: false, value: [5, 'pięć'] }, "#5");
+ a.deep(it.next(), { done: false, value: [5, "pięć"] }, "#5");
a.deep(it.next(), { done: true, value: undefined }, "End");
},
- Keys: function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], it;
+ "Keys": function (a) {
+ var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], it;
- it = new T(x, 'key');
+ it = new T(x, "key");
a(it[iteratorSymbol](), it, "@@iterator");
a.deep(it.next(), { done: false, value: 0 }, "#1");
a.deep(it.next(), { done: false, value: 1 }, "#2");
- x.splice(1, 0, 'elo');
+ x.splice(1, 0, "elo");
a.deep(it.next(), { done: false, value: 2 }, "Insert");
a.deep(it.next(), { done: false, value: 3 }, "#3");
a.deep(it.next(), { done: false, value: 4 }, "#4");
@@ -49,17 +49,17 @@ module.exports = function (T) {
a.deep(it.next(), { done: false, value: 5 }, "#5");
a.deep(it.next(), { done: true, value: undefined }, "End");
},
- Sparse: function (a) {
+ "Sparse": function (a) {
var x = new Array(6), it;
- x[2] = 'raz';
- x[4] = 'dwa';
+ x[2] = "raz";
+ x[4] = "dwa";
it = new T(x);
a.deep(it.next(), { done: false, value: undefined }, "#1");
a.deep(it.next(), { done: false, value: undefined }, "#2");
- a.deep(it.next(), { done: false, value: 'raz' }, "#3");
+ a.deep(it.next(), { done: false, value: "raz" }, "#3");
a.deep(it.next(), { done: false, value: undefined }, "#4");
- a.deep(it.next(), { done: false, value: 'dwa' }, "#5");
+ a.deep(it.next(), { done: false, value: "dwa" }, "#5");
a.deep(it.next(), { done: false, value: undefined }, "#6");
a.deep(it.next(), { done: true, value: undefined }, "End");
}
diff --git a/node_modules/es6-iterator/test/for-of.js b/node_modules/es6-iterator/test/for-of.js
index 108df7d97..9b47e979d 100644
--- a/node_modules/es6-iterator/test/for-of.js
+++ b/node_modules/es6-iterator/test/for-of.js
@@ -1,38 +1,40 @@
-'use strict';
+"use strict";
-var ArrayIterator = require('../array')
+var ArrayIterator = require("../array")
, slice = Array.prototype.slice;
module.exports = function (t, a) {
- var i = 0, x = ['raz', 'dwa', 'trzy'], y = {}, called = 0;
+ var i = 0, x = ["raz", "dwa", "trzy"], y = {}, called = 0;
t(x, function () {
a.deep(slice.call(arguments, 0, 1), [x[i]], "Array " + i + "#");
- a(this, y, "Array: context: " + (i++) + "#");
+ a(this, y, "Array: context: " + i++ + "#");
}, y);
i = 0;
- t((function () { return arguments; }('raz', 'dwa', 'trzy')), function () {
+ t((function () {
+ return arguments;
+}("raz", "dwa", "trzy")), function () {
a.deep(slice.call(arguments, 0, 1), [x[i]], "Arguments" + i + "#");
- a(this, y, "Arguments: context: " + (i++) + "#");
+ a(this, y, "Arguments: context: " + i++ + "#");
}, y);
i = 0;
- t(x = 'foo', function () {
+ t(x = "foo", function () {
a.deep(slice.call(arguments, 0, 1), [x[i]], "String " + i + "#");
- a(this, y, "Regular String: context: " + (i++) + "#");
+ a(this, y, "Regular String: context: " + i++ + "#");
}, y);
i = 0;
- x = ['r', '💩', 'z'];
- t('r💩z', function () {
+ x = ["r", "💩", "z"];
+ t("r💩z", function () {
a.deep(slice.call(arguments, 0, 1), [x[i]], "String " + i + "#");
- a(this, y, "Unicode String: context: " + (i++) + "#");
+ a(this, y, "Unicode String: context: " + i++ + "#");
}, y);
i = 0;
t(new ArrayIterator(x), function () {
a.deep(slice.call(arguments, 0, 1), [x[i]], "Iterator " + i + "#");
- a(this, y, "Iterator: context: " + (i++) + "#");
+ a(this, y, "Iterator: context: " + i++ + "#");
}, y);
- t(x = ['raz', 'dwa', 'trzy'], function (value, doBreak) {
+ t(x = ["raz", "dwa", "trzy"], function (value, doBreak) {
++called;
return doBreak();
});
diff --git a/node_modules/es6-iterator/test/get.js b/node_modules/es6-iterator/test/get.js
index 81ce6e6ae..c5947d3e6 100644
--- a/node_modules/es6-iterator/test/get.js
+++ b/node_modules/es6-iterator/test/get.js
@@ -1,17 +1,27 @@
-'use strict';
+"use strict";
-var iteratorSymbol = require('es6-symbol').iterator
- , Iterator = require('../');
+var iteratorSymbol = require("es6-symbol").iterator
+ , Iterator = require("../");
module.exports = function (t, a) {
var iterator;
- a.throws(function () { t(); }, TypeError, "Null");
- a.throws(function () { t({}); }, TypeError, "Plain object");
- a.throws(function () { t({ length: 0 }); }, TypeError, "Array-like");
+ a.throws(function () {
+ t();
+}, TypeError, "Null");
+ a.throws(function () {
+ t({});
+}, TypeError, "Plain object");
+ a.throws(function () {
+ t({ length: 0 });
+}, TypeError, "Array-like");
iterator = {};
- iterator[iteratorSymbol] = function () { return new Iterator([]); };
+ iterator[iteratorSymbol] = function () {
+ return new Iterator([]);
+};
a(t(iterator) instanceof Iterator, true, "Iterator");
- a(String(t([])), '[object Array Iterator]', " Array");
- a(String(t((function () { return arguments; }()))), '[object Array Iterator]', " Arguments");
- a(String(t('foo')), '[object String Iterator]', "String");
+ a(String(t([])), "[object Array Iterator]", " Array");
+ a(String(t(function () {
+ return arguments;
+}())), "[object Array Iterator]", " Arguments");
+ a(String(t("foo")), "[object String Iterator]", "String");
};
diff --git a/node_modules/es6-iterator/test/index.js b/node_modules/es6-iterator/test/index.js
index ea3621adf..489821854 100644
--- a/node_modules/es6-iterator/test/index.js
+++ b/node_modules/es6-iterator/test/index.js
@@ -1,98 +1,98 @@
-'use strict';
+"use strict";
-var ee = require('event-emitter')
- , iteratorSymbol = require('es6-symbol').iterator;
+var ee = require("event-emitter")
+ , iteratorSymbol = require("es6-symbol").iterator;
module.exports = function (T) {
return {
"": function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć'], it, y, z;
+ var x = ["raz", "dwa", "trzy", "cztery", "pięć"], it, y, z;
it = new T(x);
a(it[iteratorSymbol](), it, "@@iterator");
y = it.next();
- a.deep(y, { done: false, value: 'raz' }, "#1");
+ a.deep(y, { done: false, value: "raz" }, "#1");
z = it.next();
a.not(y, z, "Recreate result");
- a.deep(z, { done: false, value: 'dwa' }, "#2");
- a.deep(it.next(), { done: false, value: 'trzy' }, "#3");
- a.deep(it.next(), { done: false, value: 'cztery' }, "#4");
- a.deep(it.next(), { done: false, value: 'pięć' }, "#5");
+ a.deep(z, { done: false, value: "dwa" }, "#2");
+ a.deep(it.next(), { done: false, value: "trzy" }, "#3");
+ a.deep(it.next(), { done: false, value: "cztery" }, "#4");
+ a.deep(it.next(), { done: false, value: "pięć" }, "#5");
a.deep(y = it.next(), { done: true, value: undefined }, "End");
a.not(y, it.next(), "Recreate result on dead");
},
- Emited: function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć'], y, it;
+ "Emited": function (a) {
+ var x = ["raz", "dwa", "trzy", "cztery", "pięć"], y, it;
y = ee();
it = new T(x, y);
- a.deep(it.next(), { done: false, value: 'raz' }, "#1");
- a.deep(it.next(), { done: false, value: 'dwa' }, "#2");
- y.emit('_add', x.push('sześć') - 1);
- a.deep(it.next(), { done: false, value: 'trzy' }, "#3");
- x.splice(1, 0, 'półtora');
- y.emit('_add', 1);
- a.deep(it.next(), { done: false, value: 'półtora' }, "Insert");
+ a.deep(it.next(), { done: false, value: "raz" }, "#1");
+ a.deep(it.next(), { done: false, value: "dwa" }, "#2");
+ y.emit("_add", x.push("sześć") - 1);
+ a.deep(it.next(), { done: false, value: "trzy" }, "#3");
+ x.splice(1, 0, "półtora");
+ y.emit("_add", 1);
+ a.deep(it.next(), { done: false, value: "półtora" }, "Insert");
x.splice(5, 1);
- y.emit('_delete', 5);
- a.deep(it.next(), { done: false, value: 'cztery' }, "#4");
- a.deep(it.next(), { done: false, value: 'sześć' }, "#5");
+ y.emit("_delete", 5);
+ a.deep(it.next(), { done: false, value: "cztery" }, "#4");
+ a.deep(it.next(), { done: false, value: "sześć" }, "#5");
a.deep(it.next(), { done: true, value: undefined }, "End");
},
"Emited #2": function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], y, it;
+ var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], y, it;
y = ee();
it = new T(x, y);
- a.deep(it.next(), { done: false, value: 'raz' }, "#1");
- a.deep(it.next(), { done: false, value: 'dwa' }, "#2");
- x.splice(1, 0, 'półtora');
- y.emit('_add', 1);
- x.splice(1, 0, '1.25');
- y.emit('_add', 1);
+ a.deep(it.next(), { done: false, value: "raz" }, "#1");
+ a.deep(it.next(), { done: false, value: "dwa" }, "#2");
+ x.splice(1, 0, "półtora");
+ y.emit("_add", 1);
+ x.splice(1, 0, "1.25");
+ y.emit("_add", 1);
x.splice(0, 1);
- y.emit('_delete', 0);
- a.deep(it.next(), { done: false, value: 'półtora' }, "Insert");
- a.deep(it.next(), { done: false, value: '1.25' }, "Insert #2");
- a.deep(it.next(), { done: false, value: 'trzy' }, "#3");
- a.deep(it.next(), { done: false, value: 'cztery' }, "#4");
+ y.emit("_delete", 0);
+ a.deep(it.next(), { done: false, value: "półtora" }, "Insert");
+ a.deep(it.next(), { done: false, value: "1.25" }, "Insert #2");
+ a.deep(it.next(), { done: false, value: "trzy" }, "#3");
+ a.deep(it.next(), { done: false, value: "cztery" }, "#4");
x.splice(5, 1);
- y.emit('_delete', 5);
- a.deep(it.next(), { done: false, value: 'sześć' }, "#5");
+ y.emit("_delete", 5);
+ a.deep(it.next(), { done: false, value: "sześć" }, "#5");
a.deep(it.next(), { done: true, value: undefined }, "End");
},
"Emited: Clear #1": function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], y, it;
+ var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], y, it;
y = ee();
it = new T(x, y);
- a.deep(it.next(), { done: false, value: 'raz' }, "#1");
- a.deep(it.next(), { done: false, value: 'dwa' }, "#2");
+ a.deep(it.next(), { done: false, value: "raz" }, "#1");
+ a.deep(it.next(), { done: false, value: "dwa" }, "#2");
x.length = 0;
- y.emit('_clear');
+ y.emit("_clear");
a.deep(it.next(), { done: true, value: undefined }, "End");
},
"Emited: Clear #2": function (a) {
- var x = ['raz', 'dwa', 'trzy', 'cztery', 'pięć', 'sześć'], y, it;
+ var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], y, it;
y = ee();
it = new T(x, y);
- a.deep(it.next(), { done: false, value: 'raz' }, "#1");
- a.deep(it.next(), { done: false, value: 'dwa' }, "#2");
+ a.deep(it.next(), { done: false, value: "raz" }, "#1");
+ a.deep(it.next(), { done: false, value: "dwa" }, "#2");
x.length = 0;
- y.emit('_clear');
- x.push('foo');
- x.push('bar');
- a.deep(it.next(), { done: false, value: 'foo' }, "#3");
- a.deep(it.next(), { done: false, value: 'bar' }, "#4");
- x.splice(1, 0, 'półtora');
- y.emit('_add', 1);
- x.splice(1, 0, '1.25');
- y.emit('_add', 1);
+ y.emit("_clear");
+ x.push("foo");
+ x.push("bar");
+ a.deep(it.next(), { done: false, value: "foo" }, "#3");
+ a.deep(it.next(), { done: false, value: "bar" }, "#4");
+ x.splice(1, 0, "półtora");
+ y.emit("_add", 1);
+ x.splice(1, 0, "1.25");
+ y.emit("_add", 1);
x.splice(0, 1);
- y.emit('_delete', 0);
- a.deep(it.next(), { done: false, value: 'półtora' }, "Insert");
- a.deep(it.next(), { done: false, value: '1.25' }, "Insert #2");
+ y.emit("_delete", 0);
+ a.deep(it.next(), { done: false, value: "półtora" }, "Insert");
+ a.deep(it.next(), { done: false, value: "1.25" }, "Insert #2");
a.deep(it.next(), { done: true, value: undefined }, "End");
}
};
diff --git a/node_modules/es6-iterator/test/is-iterable.js b/node_modules/es6-iterator/test/is-iterable.js
index 438ad349c..5787351a4 100644
--- a/node_modules/es6-iterator/test/is-iterable.js
+++ b/node_modules/es6-iterator/test/is-iterable.js
@@ -1,7 +1,7 @@
-'use strict';
+"use strict";
-var iteratorSymbol = require('es6-symbol').iterator
- , Iterator = require('../');
+var iteratorSymbol = require("es6-symbol").iterator
+ , Iterator = require("../");
module.exports = function (t, a) {
var iterator;
@@ -10,10 +10,14 @@ module.exports = function (t, a) {
a(t({}), false, "Plain object");
a(t({ length: 0 }), false, "Array-like");
iterator = {};
- iterator[iteratorSymbol] = function () { return new Iterator([]); };
+ iterator[iteratorSymbol] = function () {
+ return new Iterator([]);
+};
a(t(iterator), true, "Iterator");
a(t([]), true, "Array");
- a(t('foo'), true, "String");
- a(t(''), true, "Empty string");
- a(t((function () { return arguments; }())), true, "Arguments");
+ a(t("foo"), true, "String");
+ a(t(""), true, "Empty string");
+ a(t(function () {
+ return arguments;
+}()), true, "Arguments");
};
diff --git a/node_modules/es6-iterator/test/string.js b/node_modules/es6-iterator/test/string.js
index d11855f25..3f2a5b679 100644
--- a/node_modules/es6-iterator/test/string.js
+++ b/node_modules/es6-iterator/test/string.js
@@ -1,23 +1,23 @@
-'use strict';
+"use strict";
-var iteratorSymbol = require('es6-symbol').iterator;
+var iteratorSymbol = require("es6-symbol").iterator;
module.exports = function (T, a) {
- var it = new T('foobar');
+ var it = new T("foobar");
a(it[iteratorSymbol](), it, "@@iterator");
- a.deep(it.next(), { done: false, value: 'f' }, "#1");
- a.deep(it.next(), { done: false, value: 'o' }, "#2");
- a.deep(it.next(), { done: false, value: 'o' }, "#3");
- a.deep(it.next(), { done: false, value: 'b' }, "#4");
- a.deep(it.next(), { done: false, value: 'a' }, "#5");
- a.deep(it.next(), { done: false, value: 'r' }, "#6");
+ a.deep(it.next(), { done: false, value: "f" }, "#1");
+ a.deep(it.next(), { done: false, value: "o" }, "#2");
+ a.deep(it.next(), { done: false, value: "o" }, "#3");
+ a.deep(it.next(), { done: false, value: "b" }, "#4");
+ a.deep(it.next(), { done: false, value: "a" }, "#5");
+ a.deep(it.next(), { done: false, value: "r" }, "#6");
a.deep(it.next(), { done: true, value: undefined }, "End");
a.h1("Outside of BMP");
- it = new T('r💩z');
- a.deep(it.next(), { done: false, value: 'r' }, "#1");
- a.deep(it.next(), { done: false, value: '💩' }, "#2");
- a.deep(it.next(), { done: false, value: 'z' }, "#3");
+ it = new T("r💩z");
+ a.deep(it.next(), { done: false, value: "r" }, "#1");
+ a.deep(it.next(), { done: false, value: "💩" }, "#2");
+ a.deep(it.next(), { done: false, value: "z" }, "#3");
a.deep(it.next(), { done: true, value: undefined }, "End");
};
diff --git a/node_modules/es6-iterator/test/valid-iterable.js b/node_modules/es6-iterator/test/valid-iterable.js
index a407f1a0c..b8b2a8a61 100644
--- a/node_modules/es6-iterator/test/valid-iterable.js
+++ b/node_modules/es6-iterator/test/valid-iterable.js
@@ -1,18 +1,28 @@
-'use strict';
+"use strict";
-var iteratorSymbol = require('es6-symbol').iterator
- , Iterator = require('../');
+var iteratorSymbol = require("es6-symbol").iterator
+ , Iterator = require("../");
module.exports = function (t, a) {
var obj;
- a.throws(function () { t(); }, TypeError, "Undefined");
- a.throws(function () { t({}); }, TypeError, "Plain object");
- a.throws(function () { t({ length: 0 }); }, TypeError, "Array-like");
+ a.throws(function () {
+ t();
+}, TypeError, "Undefined");
+ a.throws(function () {
+ t({});
+}, TypeError, "Plain object");
+ a.throws(function () {
+ t({ length: 0 });
+}, TypeError, "Array-like");
obj = {};
- obj[iteratorSymbol] = function () { return new Iterator([]); };
+ obj[iteratorSymbol] = function () {
+ return new Iterator([]);
+};
a(t(obj), obj, "Iterator");
obj = [];
- a(t(obj), obj, 'Array');
- obj = (function () { return arguments; }());
+ a(t(obj), obj, "Array");
+ obj = (function () {
+ return arguments;
+}());
a(t(obj), obj, "Arguments");
};
diff --git a/node_modules/es6-iterator/valid-iterable.js b/node_modules/es6-iterator/valid-iterable.js
index d330997cb..8c6e07159 100644
--- a/node_modules/es6-iterator/valid-iterable.js
+++ b/node_modules/es6-iterator/valid-iterable.js
@@ -1,6 +1,6 @@
-'use strict';
+"use strict";
-var isIterable = require('./is-iterable');
+var isIterable = require("./is-iterable");
module.exports = function (value) {
if (!isIterable(value)) throw new TypeError(value + " is not iterable");