diff options
author | Rebecca Turner <me@re-becca.org> | 2015-09-10 01:13:40 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2015-09-10 23:47:23 +0300 |
commit | fff62ac0e0b06c28e4ded99c606dbb7a4c2b0b8f (patch) | |
tree | 56c29fc70d051440fbfaa346819090fd01d016a2 /node_modules | |
parent | 9d6488cb5ceafb93d500cdad4d2667ebce42ddf5 (diff) |
process-nextick-args@1.0.3
Diffstat (limited to 'node_modules')
-rw-r--r-- | node_modules/process-nextick-args/index.js | 2 | ||||
-rw-r--r-- | node_modules/process-nextick-args/license.md | 19 | ||||
-rw-r--r-- | node_modules/process-nextick-args/package.json | 23 | ||||
-rw-r--r-- | node_modules/process-nextick-args/test.js | 7 |
4 files changed, 40 insertions, 11 deletions
diff --git a/node_modules/process-nextick-args/index.js b/node_modules/process-nextick-args/index.js index 3eb2f33d0..049521cad 100644 --- a/node_modules/process-nextick-args/index.js +++ b/node_modules/process-nextick-args/index.js @@ -4,7 +4,7 @@ module.exports = nextTick; function nextTick(fn) { var args = new Array(arguments.length - 1); var i = 0; - while (i < arguments.length) { + while (i < args.length) { args[i++] = arguments[i]; } process.nextTick(function afterTick() { diff --git a/node_modules/process-nextick-args/license.md b/node_modules/process-nextick-args/license.md new file mode 100644 index 000000000..c67e3532b --- /dev/null +++ b/node_modules/process-nextick-args/license.md @@ -0,0 +1,19 @@ +# Copyright (c) 2015 Calvin Metcalf + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +**THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE.** diff --git a/node_modules/process-nextick-args/package.json b/node_modules/process-nextick-args/package.json index 035899ff1..f6f94b306 100644 --- a/node_modules/process-nextick-args/package.json +++ b/node_modules/process-nextick-args/package.json @@ -6,15 +6,15 @@ ] ], "_from": "process-nextick-args@>=1.0.0 <1.1.0", - "_id": "process-nextick-args@1.0.2", + "_id": "process-nextick-args@1.0.3", "_inCache": true, "_location": "/process-nextick-args", - "_nodeVersion": "2.3.0", + "_nodeVersion": "2.5.0", "_npmUser": { "email": "calvin.metcalf@gmail.com", "name": "cwmma" }, - "_npmVersion": "2.11.1", + "_npmVersion": "2.9.0", "_phantomChildren": {}, "_requested": { "name": "process-nextick-args", @@ -26,10 +26,12 @@ }, "_requiredBy": [ "/bl/readable-stream", - "/concat-stream/readable-stream" + "/concat-stream/readable-stream", + "/tap-parser/readable-stream", + "/tap/readable-stream" ], - "_resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.2.tgz", - "_shasum": "8b4d3fc586668bd5b6573e732edf2b71c1c1d8aa", + "_resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.3.tgz", + "_shasum": "e272eed825d5e9f4ea74d8d73b1fe311c3beb630", "_shrinkwrap": null, "_spec": "process-nextick-args@~1.0.0", "_where": "/Users/rebecca/code/npm/node_modules/bl/node_modules/readable-stream", @@ -44,11 +46,12 @@ }, "directories": {}, "dist": { - "shasum": "8b4d3fc586668bd5b6573e732edf2b71c1c1d8aa", - "tarball": "http://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.2.tgz" + "shasum": "e272eed825d5e9f4ea74d8d73b1fe311c3beb630", + "tarball": "http://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.3.tgz" }, - "gitHead": "295707643b4ed6667c1afb71ffb6101669b5dac2", + "gitHead": "e855846a69662b9489f1ad3dde1ebf2ccc4370b8", "homepage": "https://github.com/calvinmetcalf/process-nextick-args", + "installable": true, "license": "MIT", "main": "index.js", "maintainers": [ @@ -66,5 +69,5 @@ "scripts": { "test": "node test.js" }, - "version": "1.0.2" + "version": "1.0.3" } diff --git a/node_modules/process-nextick-args/test.js b/node_modules/process-nextick-args/test.js index 729f775ff..ef1572158 100644 --- a/node_modules/process-nextick-args/test.js +++ b/node_modules/process-nextick-args/test.js @@ -15,3 +15,10 @@ test('should work', function (t) { t.equals(c, 'profit'); }, 'step', 3, 'profit'); }); + +test('correct number of arguments', function (t) { + t.plan(1); + nextTick(function () { + t.equals(2, arguments.length, 'correct number'); + }, 1, 2); +}); |