Paul Querna
870aa3d97f
Move evals to extension module.
15 years ago
Paul Querna
ace2be8aa6
Move the Stat structure functions to node_file.cc
from node.cc, so we can convert fs to a module.
15 years ago
Paul Querna
82daa46e26
Move Buffer to extension model.
15 years ago
Paul Querna
4f7f43762d
Move child process to extension model.
15 years ago
Paul Querna
e65c27062f
Move http parser to extension model.
15 years ago
Paul Querna
e51aef7f3c
Move signal_watcher to extension model.
15 years ago
Paul Querna
208290b524
Move cares to extension model
15 years ago
Paul Querna
e5bb8abc9d
Move stdio to extension model.
15 years ago
Paul Querna
8dbfe5ea8f
Use the top level check for the bindings cache
(rather than each potential module having its own if check)
15 years ago
Paul Querna
30dadfc033
Register builtin extensions via a macro, rather than a manual strcmp
Set the stage for making the builtin modules more dynamic.
Note: this only converts crypto and net, I will add more extensions in a
later commit.
* node.h: Add utility macro for converting macro values to strings.
* node.h: Include the actual module name inside the module structure, not
just the file it was built from.
* node.h: New Macro, NODE_MODULE_DECL, for declaring an external reference
to a module structure.
* node_extensions.cc: New File, implements get_builtin_module, which
iterates over the module structures that are compiled into node.
* node.cc(node::Binding): Use the new module lookup function to find
modules.
* node_{net,crypto}.c: Add NODE_MODULEs to generate the module structure.
15 years ago
Ryan Dahl
6bf294d71a
JSON is %j not %f
15 years ago
Paul Querna
367b87d26d
Add support for the module structure to process.dlopen.
15 years ago
Paul Querna
49066042a2
Add basic structure and macros for node modules.
15 years ago
Paul Querna
480164f923
Move node version to a single static header file.
Some compile time variables like the cflags and prefix have been moved to
the node_config.h.in, in the anticipation that they will be removed at
somepoint.
15 years ago
Peter Griess
99a5d1e293
Free kbuf[] in Verify::VerifyFinal().
15 years ago
Peter Griess
ac2404283e
Coverity stack size warnings in DefineConstants().
15 years ago
Peter Griess
7a706e4206
Coverity fixes: src/platform_linux.cc
15 years ago
Peter Griess
6eb0b6ac27
Coverity fixes: src/node_net
15 years ago
Peter Griess
760fb17bbf
Coverity fixes: src/node_file
15 years ago
Peter Griess
792c7caf40
Coverity fixes: src/node_crypto
15 years ago
Peter Griess
4e3c5d88b3
Coverity fixes: src/node.cc
15 years ago
Jerome Etienne
8e9f59a452
Support of console.dir + console.assert
15 years ago
Ryan Dahl
192234c689
Remove unnecessary defines in node_events.cc
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
d49d53fd49
Expose new HTTP methods
15 years ago
Blake Mizerany
8c8534046c
fix whitespace errors
15 years ago
Ryan Dahl
0a8bd34b69
Resolve .local domains with getaddrinfo()
C-Ares doesn't go through the Name Service Switch (NSS) and thus can't
resolve certain classes of names. Generally this doesn't matter and the
whole idea of NSS is rather annoying. Nevertheless until C-Ares gets better
support, adding this hack to go through getaddrinfo() for .local domain look
up.
This reverts commit 9926dacd14
.
15 years ago
Matt Ranney
02ed0ec93b
On overlapping buffers use memmove
15 years ago
Ryan Dahl
5e86d01385
Revert "Buffer.copy should copy through sourceEnd, as specified."
This reverts commit a2f70da4c9
.
Keep tests modifies a few edge checks on Copy()
15 years ago
Ryan Dahl
6b430a95c9
console.log: if not string, coerce into one
15 years ago
Ryan Dahl
5aadeae888
Simply C++ event emitter
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
23172c5d85
Lint node_script.cc
15 years ago
Ryan Dahl
e2db605308
Use EVBACKEND_POLL on Solaris; select() is just a wrapper anyway
15 years ago
Ruben Rodriguez
242161bef2
Added new API to Script, and implemented it in the REPL
15 years ago
Matt Ranney
a2f70da4c9
Buffer.copy should copy through sourceEnd, as specified.
Improve test-buffer.js to cover all copy error cases.
Fix off by one error in string_decoder.
15 years ago
Ryan Dahl
ba792ea202
:%s/sys.puts/console.log/g
and there was much rejoicing
15 years ago
Ryan Dahl
f541043618
Remove ini.js
15 years ago
Ryan Dahl
fc175a089d
Remove mjsunit from repo
15 years ago
Ryan Dahl
1b5ec7017d
Don't use NULL in realpath() on darwin, doesn't work in older versions
Thanks to Peter Griess <pg@std.in> for the bug report.
15 years ago
Marshall Culpepper
ca35ba640a
Initial implementation of process.execPath
Darwin, Linux, Solaris. FreeBSD still needs testing.
TODO: Amend the tests where we use spawn with argv[0].
15 years ago
Ryan Dahl
f1a4f17897
script.runIn*Context not throwing errors properly.
15 years ago
Ryan Dahl
9bd3942f70
Add platform_none for cygwin build
15 years ago
Ryan Dahl
84c10265db
Fix platform_linux.cc, missing include
15 years ago
Ryan Dahl
01a8d270cf
Add platform files, move getmem to node::OS class.
15 years ago
David Siegel
81ad8106dc
Add UDP broadcast support
15 years ago
isaacs
73f207fe59
Throw exceptions, not strings
15 years ago
Ryan Dahl
c2e2479cc5
Fix Linux build
15 years ago