Ryan
dce072a67e
lint
16 years ago
Urban Hafner
ea290e727d
Finished remote module loading
16 years ago
Urban Hafner
ad15067ea0
Tests and implementation of node.cat()
16 years ago
Ryan
ddac43f4ba
Allow for absolute paths to specify root module
16 years ago
Ryan
8b49cef10b
Modify the tests to use onExit hook.
No need to rely on stdout output now.
onExit callbacks should print stack trace from onExit failure
16 years ago
Ryan
f6a7fe2657
Implement onExit() hook for modules.
onExit() is similar to the onLoad() callback. onExit() is called on each
module just before the process exits. This can be used to check state in
unit tests, but not to perform I/O. The process will forcibly exit as soon
as all of the onExit callbacks are made.
16 years ago
Ryan
b6fe4aec50
Module system refactor
There is one major API change in the refactor: filename extensions are now
required when requiring or including modules.
Added extra test to test-module-loading.js.
16 years ago
Ryan
ed283dc280
Fix bug: catting non-existent files
16 years ago
Ryan
e8f177aa2d
Clean up outgoing encoding API. Generally: send(chunk, encoding).
16 years ago
Ryan
d1b0ce6d37
Large refactor of file code.
All the c++ code is now reduced to simple wrappers. The node.fs.File object
is defined entirely in javascript now. As is the actionQueue methods.
This makes the boundaries much cleaner. There is still some thought that
needs to go into how exactly the API should behave but this simplification
is a first step.
16 years ago
Ryan
3eb4819db1
Add docs. Rename exit() to node.exit().
16 years ago
Ryan
58c13e5192
Namespace File stuff in node.fs
16 years ago
Ryan
3212b31ea1
Rename main.js to node.js.
16 years ago
Ryan
f6c955b7f4
Move Timer class into node namespace.
16 years ago
Ryan
ba17940551
Add accessor File#encoding
16 years ago
Ryan
be6b3acf0e
extract headers, status_code, path, http version from http messages.
still a work in progress.
16 years ago
Ryan
0f5170339c
remove process.{cc,h} process.exit() now exit()
the process object might return in the future but for now it is going away.
16 years ago
Ryan
f213a27657
Refactor setTimeout to be a Timer object.
Timer now uses ObjectWrap. setTimeout, setInterval are now implemented in
javascript.
16 years ago
Ryan
8a8e9df72e
wasn't sending pos arg for puts()
16 years ago
Ryan
d105d88625
on_load -> onLoad
16 years ago
Ryan
a0f2b8a0c5
remove debug messages from module loading.
16 years ago
Ryan
408526a1c1
debugging/improving the module framework
16 years ago
Ryan
64117d9c94
small cleanups to the require structure
16 years ago
Ryan
93f7f0dca0
reimplement module loading
still missing several important features and its mostly untested but the script
test/test-test.js is working and thats enough for now.
16 years ago
Ryan
dd691decd2
file system methods to be queued.
16 years ago
Ryan
12d31dd0b7
file operations are queued.
16 years ago
Ryan
e303d950d9
add stdout stderr global file objects. remove node.blocking.print
16 years ago
Ryan
e8ce6ef790
add file open/close
16 years ago
Ryan
63a9cd3897
everything is changed. i've waited much too long to commit.
this is awful. i'm sorry for being so messy.
16 years ago