Ryan Dahl
6bf294d71a
JSON is %j not %f
15 years ago
Jerome Etienne
8e9f59a452
Support of console.dir + console.assert
15 years ago
Ryan Dahl
8a52fb7aeb
Revert "Fix 'uncaughtException' for top level exceptions"
This reverts commit 8f8dcf8ed6
.
15 years ago
Ryan Dahl
8f8dcf8ed6
Fix 'uncaughtException' for top level exceptions
Done by not evaluating the code in the first tick.
This breaks one test in test-error-reporting.js but I believe this to be a
V8 error and I have reported it in
http://code.google.com/p/v8/issues/detail?id=764
15 years ago
Ryan Dahl
6b430a95c9
console.log: if not string, coerce into one
15 years ago
Ryan Dahl
b69c6a03b1
If not string, console.log should just print it without trying to format
15 years ago
Ryan Dahl
c9e12204a2
Stub out console.log format strings, info, warn, error
15 years ago
Ryan Dahl
ba792ea202
:%s/sys.puts/console.log/g
and there was much rejoicing
15 years ago
Ryan Dahl
6056d2ea2c
node without arguments starts the REPL
15 years ago
Ryan Dahl
f73b6e2190
Fix opposite logic, which coincidentially works
15 years ago
Ryan Dahl
cbd2c3945b
Throwing in a callback should kill the process
There is a difference between errors which happen to a socket - like
receiving EPIPE - an exceptional situation but ultimately okay and the
situation where code throws in a callback - which is not okay.
Fixes test/simple/test-http-exceptions.js
TODO: explain this in docs.
15 years ago
Jonas Pfenniger
4274e6b7d0
FIX: signal-unregister bug
We now restore the default signal behavior when all listeners are
removed for a given signal.
Re-enabled test-signal-unregister
15 years ago
Jonas Pfenniger
50148022d1
Thinner SignalWatcher, only using callback
Since it is only used internally, we don't need the complexity of
EventEmitter. The new SignalWatcher's design was copied from
IdleWatcher.
15 years ago
Herbert Vojčík
039d13b0c3
DRY binding('stdio')
15 years ago
Ryan Dahl
6d85802100
basicRequest -> module.requireNative
15 years ago
Herbert Vojčík
7a72885ede
process.evalcx has a deprecation message.
15 years ago
Herbert Vojčík
7e4c1285dc
Minor stylistic changes.
15 years ago
Tim Caswell
8f79169aef
Remove node.* deprecation messages.
15 years ago
Ryan Dahl
e7a1fa1293
fs.FileWriteStream -> fs.WriteStream, fs.FileReadStream -> fs.ReadStream
15 years ago
Ryan Dahl
5aea12b4c4
stdout should be writable only
15 years ago
Felix Geisendörfer
c143cba590
Get rid of coupling for stdin
15 years ago
Felix Geisendörfer
76f98c27de
Get rid of coupling for stdout
15 years ago
Ryan Dahl
6abdf051d3
Unhandled 'error' events kill program
By default 'error' throws. addListener to prevent this.
15 years ago
Ryan Dahl
d70474dc10
SIGPIPE on stdout should kill the process by default
15 years ago
isaacs
cfd459abde
Move the module loading framework into lib/module.js. Minimal changes otherwise.
15 years ago
isaacs
e0061a511d
refactor path module to lib/path.js
15 years ago
isaacs
7ff53f4c6a
Refactor events module to lib/events.js
15 years ago
Michaeljohn Clement
ac9d9f4e9f
better function test in addEventListener
15 years ago
Herbert Vojcik
c2a06725d6
Script class with eval-function-family in binding('evals') plus tests.
15 years ago
Ryan Dahl
4e7e2f8724
Change nextTick implementation for the better
Use a prepare and idle watcher to execute the nextTick callback more
quickly. Test provided by Matt Ranney.
15 years ago
Ryan Dahl
b98cd6753b
process.mixin: deprecation -> removed
15 years ago
Tim Caswell
62d9852c3d
Replace slow and broken for..in loops with faster for loops over the keys.
15 years ago
Herbert Vojcik
06b9c8bf1f
Fix of normalizing paths of form ./../the/rest
15 years ago
Ryan Dahl
218d7e9f2d
Clean up NODE_DEBUG detection
It wasn't detecting if NODE_DEBUG=0
15 years ago
Herbert Vojcik
9e8afe9133
DRY loading native module
15 years ago
Carson McDonald
e5cbe73a82
Better EventEmitter modify-in-emit
Changed ReallyEmit so that it clones the Array of listeners before
processing the emit. Added better tests to make sure that modifying
listeners inside event handlers doesn't cause later listeners to be skipped
or added.
15 years ago
Scott Taylor
39f0ef9d4a
Remove duplicate shebang filtering
15 years ago
Ryan Dahl
1332cafb7c
s/Socket/Stream/g
15 years ago
Ryan Dahl
04c06b9149
child process now use net.Socket
15 years ago
Ryan Dahl
fdf46a65c9
Use streams for stdout and stdin
15 years ago
Ryan Dahl
c90546f138
Move native js files into binding object
15 years ago
Ryan Dahl
8492c52e15
Use uniform watcher names
15 years ago
Ryan Dahl
627fb5adbb
Load c++ modules on demand
15 years ago
Ryan Dahl
5c712a7da5
Lazy load fs.readFile
15 years ago
Ryan Dahl
1256df76bc
remove whitespace
15 years ago
Ryan Dahl
1395cba6ce
Remove require.paths from process object
15 years ago
Ryan Dahl
4ccdc501d4
Include lib/ directory in node executable. Compile on demand.
Instead of installing the files in /usr/lib/node/libraries and loading them
from the file system, the files are built-in to the node executable.
However, they are only compiled on demand.
The reasoning is:
1. Allow for more complex internal javascript. In particular,
process.stdout and process.stdin can be js implemented streams.
2. Ease system installs. Loading from disk each time is unnecessary
overhead. Note that there is no "system" path for modules anymore. Only
$HOME/.node_libraries.
15 years ago
Scott González
d2ec5c23cf
Fixed typo in comment for require.registerExtension().
15 years ago
Ryan Dahl
2c7cbbc1b0
Optimize event emitter for single listener
15 years ago
Ryan Dahl
c1613e6ebb
Deprecate process.mixin
15 years ago