-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cherrypick commits from joyent/node #834
Commits on Feb 13, 2015
-
net: throw on invalid socket timeouts
This commit restricts socket timeouts non-negative, finite numbers. Any other value throws a TypeError or RangeError. This prevents subtle bugs that can happen due to type coercion. Fixes: nodejs/node-v0.x-archive#8618 PR-URL: nodejs/node-v0.x-archive#8884 Reviewed-By: Trevor Norris <[email protected]> Reviewed-By: Timothy J Fontaine <[email protected]> Conflicts: lib/timers.js test/simple/test-net-settimeout.js test/simple/test-net-socket-timeout.js
Configuration menu - View commit details
-
Copy full SHA for faafbe7 - Browse repository at this point
Copy the full SHA faafbe7View commit details -
doc: use correct signature for assert()
The message argument is optional for both assert() and assert.ok(). This commit makes message optional for assert(). PR-URL: nodejs/node-v0.x-archive#9003 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Trevor Norris <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 39be594 - Browse repository at this point
Copy the full SHA 39be594View commit details -
module: replace NativeModule.require
The NativeModule system passes NativeModule.require transparently and so is unnecessary to call explicitly. The only one which should have the prefix is the in line 295, where actually implements a big fs-based module system and actually requires a native module. That is left unchanged. PR-URL: nodejs/node-v0.x-archive#9201 Ref: nodejs/node-v0.x-archive#2009 Reviewed-by: Trevor Norris <[email protected]> Conflicts: lib/module.js
Configuration menu - View commit details
-
Copy full SHA for 970841d - Browse repository at this point
Copy the full SHA 970841dView commit details -
Add a ';' to the end of a function call in documentation. PR-URL: nodejs/node-v0.x-archive#9198 Reviewed-by: Trevor Norris <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 43907ca - Browse repository at this point
Copy the full SHA 43907caView commit details -
test: Timeout#unref() does not return instance
Timeout#unref() call returns undefined, not this. The test already worked before, because the interval was still unref'd, and the test also succeeds without clearing the interval. PR-URL: nodejs/node-v0.x-archive#9171 Reviewed-by: Colin Ihrig <[email protected]> Reviewed-by: Timothy J Fontaine <[email protected]> Conflicts: test/simple/test-timers-unref.js
Configuration menu - View commit details
-
Copy full SHA for ff66973 - Browse repository at this point
Copy the full SHA ff66973View commit details -
PR-URL: nodejs/node-v0.x-archive#9164 Reviewed-by: Colin Ihrig <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 22c0346 - Browse repository at this point
Copy the full SHA 22c0346View commit details -
net: remove use of arguments in Server constructor
The current implementation uses the arguments object in the Server() constructor. Since both arguments to Server() are optional, there was a high likelihood of accessing a non-existent element in arguments, which carries a performance overhead. This commit replaces the arguments object with named arguments. Reviewed-by: Trevor Norris <[email protected]> Conflicts: lib/net.js
Configuration menu - View commit details
-
Copy full SHA for a699cee - Browse repository at this point
Copy the full SHA a699ceeView commit details