diff options
author | Tobias Nießen <tniessen@tnie.de> | 2017-06-17 15:59:20 +0200 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2017-06-20 20:35:55 +0200 |
commit | 279fcc44fa3590a3255d316d03e93a0b58696b33 (patch) | |
tree | ba33fda461c9ac194f0ba61ee97df3eadaca2307 /test/parallel/test-dgram-setTTL.js | |
parent | a0f728434617c1b84e20a56da33ed888dc254508 (diff) | |
download | android-node-v8-279fcc44fa3590a3255d316d03e93a0b58696b33.tar.gz android-node-v8-279fcc44fa3590a3255d316d03e93a0b58696b33.tar.bz2 android-node-v8-279fcc44fa3590a3255d316d03e93a0b58696b33.zip |
dgram: change parameter name in set(Multicast)TTL
Changed the parameter name in set(Multicast)TTL from "arg" to "ttl"
both within code and error messages and added the actual type of the
argument to the error message.
PR-URL: https://github.com/nodejs/node/pull/13747
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-dgram-setTTL.js')
-rw-r--r-- | test/parallel/test-dgram-setTTL.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-dgram-setTTL.js b/test/parallel/test-dgram-setTTL.js index c061fbc187..840a3f4d09 100644 --- a/test/parallel/test-dgram-setTTL.js +++ b/test/parallel/test-dgram-setTTL.js @@ -14,7 +14,7 @@ socket.on('listening', common.mustCall(() => { }, common.expectsError({ code: 'ERR_INVALID_ARG_TYPE', type: TypeError, - message: /^The "arg" argument must be of type number$/ + message: 'The "ttl" argument must be of type number. Received type string' })); // TTL must be a number from > 0 to < 256 |