Herbert Vojčík
1872719b8c
Typo in comment.
15 years ago
Ryan Dahl
03dda31b75
Simplify loading events.js
15 years ago
Herbert Vojčík
ff953dccf1
Refactor of resolveModulePath to make it clearer.
15 years ago
Herbert Vojčík
13a3bf5b7d
Clean up findModulePath
Separating "what to traverse" from "how to traverse and what to do with it "
in findModulePath. It may also fix one not-yet-found bug (absolute ids
weren't loaded when dirs.length = 0).
15 years ago
Herbert Vojčík
361759d179
Using Array.isArray for Array testing in findModulePath.
15 years ago
Ryan Dahl
d408de87fc
Remove module.js - put code into src/node.js
15 years ago
Tj Holowaychuk
e8795cea30
Added console.trace()
15 years ago
Tj Holowaychuk
a8e1e8d057
Added console.{time,timeEnd}()
15 years ago
Tj Holowaychuk
e15221a8de
console formatter appends extra arguments
This makes the console methods more "browser-like",
for example:
console.log("foo", "bar", "baz");
// foo bar baz
but still works with formatting
console.log("hey %s", "tj", "whats up");
// hey tj whats up
15 years ago
Felix Geisendörfer
ffbbc465d3
Support inspecting objects with console.log
If the first parameter passed into console.log() is not a string, all
parameters will be printed as formated by sys.inspect. This change
also affects console.info and console.warn.
15 years ago
Ryan Dahl
adec544fdd
Revert "Expose the V8 debug object process.debug"
This reverts commit d9fbb8a580
.
15 years ago
Ryan Dahl
d9fbb8a580
Expose the V8 debug object process.debug
Add one duplicate test from V8, just to make sure it works.
15 years ago
Brian
71009ad3fe
Allow signals to be used with process.on in addition to process.addListener.
15 years ago
Ryan Dahl
5459e5c606
Globalize the Buffer object
15 years ago
Dmitry Baranovskiy
a585c5bbb3
Fixed format, so it wouldn’t blow up if %d argument is null or undefined + ensure that numbers will be numbers
15 years ago
Marco Rogers
1662c37c40
Fix console formatter to recognize json properly
15 years ago
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