summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2012-07-20tls: pass lintingFedor Indutny1-7/+6
2012-07-20tls: fix 'hostless' tls connection verificationFedor Indutny1-1/+1
And fix last failing tests
2012-07-20Revert "http/https: pass request to .createConnection()"Fedor Indutny2-17/+11
This reverts commit 53716eb0b5338999761d115fad9d392077836e63.
2012-07-20tls: revert accidental API changeFedor Indutny1-1/+1
socket.authorizationError should always be string. Also make sni test pass.
2012-07-20tls: localhost is valid against identity-checkFedor Indutny1-4/+0
2012-07-20tls: veryify server's identityFedor Indutny2-11/+113
2012-07-20http/https: pass request to .createConnection()Fedor Indutny2-11/+19
It's useful for passing some additional options of request object to the underlying API
2012-07-20net: ignore socket.setTimeout(Infinity) (and NaN)Fedor Indutny1-1/+1
2012-07-16Merge remote-tracking branch 'ry/v0.8'isaacs1-0/+2
2012-07-16Enable color customization of `util.inspect`Pavel Lang1-5/+5
This is rewrite of #3701 and #3603 before. This patch introduce `util.inspect.styles` and `util.inspect.colors` objects, which enables customization of color sequences.
2012-07-16domain: Fix stack leak on errorisaacs1-0/+2
2012-07-13Merge remote-tracking branch 'ry/v0.8'isaacs2-1/+5
Conflicts: deps/npm
2012-07-12Revert "events: don't delete the listeners array in removeListener()"Nathan Rajlich1-0/+2
This reverts commit 928ea564d16da47e615ddac627e0b4d4a40d8196. Keeping the original Array instance in-place essentially causes a memory leak on EventEmitters that use an infinite number of event names (an incrementing counter, for example), which isn't an unreasonable thing to want to do. Fixes #3702.
2012-07-12net: fix net.Server.listen({fd:x}) error reportingBen Noordhuis1-0/+1
* don't assert when fd isn't an open file descriptor * don't die with a ReferenceError when fd isn't a file descriptor you can listen() on Fixes #3699.
2012-07-12net: fix bogus errno reportingBen Noordhuis1-1/+2
_listen2() emits the error on the next tick. The errno value may have changed by then.
2012-07-11lintisaacs1-1/+1
2012-07-11Merge remote-tracking branch 'ry/v0.8' into v0.8-mergeisaacs11-91/+97
Conflicts: src/node_version.h
2012-07-10timer: change new Date to Date.now for performanceShigeki Ohtsu1-4/+4
Speeds up benchmark/settimeout.js by about 30%.
2012-07-09domain: Remove first arg from intercepted fnToshihiro Nakamura1-1/+1
Fix to remove the first-arg, in case arguments length is more than 2 Add domain.intercept() test about first-arg removal
2012-07-09fs: make unwatchFile() remove a specific listenerBen Noordhuis1-4/+12
Before this commit, `fs.unwatchFile(path)` removed *all* listeners for `path`. The function is overloaded now: `fs.unwatchFile(path)` still removes all listeners, but `fs.unwatchFile(path, cb)` lets you remove a specific listener. Fixes #3660.
2012-07-06readline: don't use Function#call()Nathan Rajlich1-4/+3
It wasn't necessary.
2012-07-06Forgotten commit: add arguments to handleGroupJonas Westerlund1-3/+3
2012-07-06Use unicode escape sequences instead of octalJonas Westerlund1-2/+2
The latter is illegal in strict mode.
2012-07-06Inline timeout function, avoiding declaration in conditionalJonas Westerlund1-3/+2
Moving it out would require an anonymous function, or bind(), anyway. Luckily It's a tiny function. Fixes crash in strict mode.
2012-07-06Move function declaration out of conditionalJonas Westerlund1-35/+30
Also avoid using eval as identifier. Fixes crashes in strict mode.
2012-07-06Move function declaration to top-levelJonas Westerlund1-28/+28
Gets rid of a strict mode error and a few levels of indentation.
2012-07-06Do not assign to properties that only have gettersJonas Westerlund1-5/+0
It is an error in strict mode, and silent failure otherwise.
2012-07-06Avoid redeclaring variableJonas Westerlund1-3/+5
Capitalize the constructor to avoid redeclaration. Fixes strict mode error.
2012-07-06Remove octal escape sequences and avoid reserved keywordJonas Westerlund1-3/+3
Both are errors in strict mode.
2012-07-06module: add filename to require() json errorsTJ Holowaychuk1-1/+6
Otherwise it can be quite difficult to figure out which file is busted. Closes #3580.
2012-07-06readline: fix for unicode promptsTim Macfarlane1-1/+1
prompt length is char length, not byte length
2012-07-05timers: fix handling of large timeoutsBen Noordhuis1-4/+6
Don't use the double-negate trick to coalesce the timeout argument into a number, it produces the wrong result for very large timeouts. Example: setTimeout(cb, 1e10); // doesn't work, ~~1e10 == 1410065408
2012-07-05tls: use slab allocatorFedor Indutny1-17/+48
2012-07-05readline: Use one history item for reentered lineVladimir Beloborodov1-4/+6
If the command entered is exactly the same as the last history item, don't dupe it in the history
2012-07-04repl: fix passing an empty line inserting "undefined" into the bufferNathan Rajlich1-0/+1
There was a possiblity of insering the string "undefined" into the repl's command buffer, which would cause interesting results while evaluating.
2012-07-04repl: fix crashes when buffering commandMaciej MaƂecki1-1/+1
Wrong order of operands was causing problems while trying to use command buffering: > { ... a: 3, ... repl.js:284 if (cmd.trim().match(/^npm /) && !self.bufferedCommand) { ^ TypeError: Cannot call method 'trim' of undefined at finish (repl.js:284:17) at REPLServer.self.eval (repl.js:118:5) at rli.on.e (repl.js:260:20) at REPLServer.self.eval (repl.js:118:5) at Interface.<anonymous> (repl.js:250:12) at Interface.EventEmitter.emit (events.js:88:17) at Interface._onLine (readline.js:183:10) at Interface._line (readline.js:502:8) at Interface._ttyWrite (readline.js:720:14) at ReadStream.<anonymous> (readline.js:105:12) Test included. Closes #3515. Closes #3517. Closes #3621.
2012-07-04punycode: update to v1.1.1Mathias Bynens1-11/+9
2012-07-04Merge remote-tracking branch 'origin/v0.8'Ben Noordhuis1-1/+1
Conflicts: configure src/node_version.h
2012-06-28lintisaacs1-1/+1
2012-06-29Merge branch 'v0.8'Bert Belder3-47/+104
2012-06-28Fix #3577 Un-break require('sys')isaacs1-1/+24
2012-06-28util: speed up formatting of large arrays/objectsBen Noordhuis1-3/+18
Don't .indexOf() into the keys array. V8 is smart but not so smart that it knows how to turn the linear scan into a O(1) lookup. Fixes #3562.
2012-06-27windows: make fs.realpath(Sync) work with UNC pathsBert Belder1-42/+61
Closes #3542
2012-06-26realpath: No sync cb() calling allowed.isaacs1-2/+2
2012-06-23repl: fix buffer clearing after npm commandBen Noordhuis1-1/+1
2012-06-21Add --no-deprecation and --trace-deprecation flagsisaacs7-43/+48
2012-06-21http: Hush 'MUST NOT have a body' warnings to debug()isaacs1-4/+4
2012-06-21fs: make fs.watchFile() interval default to 5007Ben Noordhuis1-6/+9
2012-06-21fs: make fs.watchFile() work on windowsBen Noordhuis1-5/+7
2012-06-21Use parent SlowBuffer, if any, when Buffer is slicedKarl Skomski1-1/+5
Closes #3416 Closes #3477