Ryan Dahl [Thu, 15 Jul 2010 18:47:25 +0000 (11:47 -0700)]
Update tests to work with module contexts
Ryan Dahl [Thu, 15 Jul 2010 17:52:31 +0000 (10:52 -0700)]
Fix reference to root global context
Ryan Dahl [Thu, 15 Jul 2010 17:36:35 +0000 (10:36 -0700)]
Add TODO list
Ryan Dahl [Wed, 14 Jul 2010 21:29:28 +0000 (14:29 -0700)]
Use Array.isArray instead of instanceof
Ryan Dahl [Wed, 14 Jul 2010 21:22:58 +0000 (14:22 -0700)]
Add 'root' global variable as reference to sandbox
Ryan Dahl [Tue, 13 Jul 2010 23:40:54 +0000 (16:40 -0700)]
Load modules in individual contexts
Add NODE_MODULE_CONTEXTS env var
Only one test was modified to check that this works. NEED to go through all
tests and modify them so that
NODE_MODULE_CONTEXTS=1 make test
passes.
Matt Ranney [Mon, 5 Jul 2010 20:38:13 +0000 (13:38 -0700)]
Datagram socket refactor. Add tests and documentation.
Support setTTL() and setBroadcast() socket options.
Peter Griess [Thu, 15 Jul 2010 13:52:15 +0000 (08:52 -0500)]
Buffer.copy() should liberally allow empty copies.
Peter Griess [Wed, 14 Jul 2010 23:07:17 +0000 (18:07 -0500)]
Buffer('') should create a 0-length buffer
Ryan Dahl [Wed, 14 Jul 2010 18:16:20 +0000 (11:16 -0700)]
Upgrade V8 to 2.2.24
Paul Querna [Wed, 14 Jul 2010 07:17:21 +0000 (00:17 -0700)]
Move evals to extension module.
Paul Querna [Wed, 14 Jul 2010 07:10:38 +0000 (00:10 -0700)]
Move the Stat structure functions to node_file.cc
from node.cc, so we can convert fs to a module.
Paul Querna [Wed, 14 Jul 2010 06:58:15 +0000 (23:58 -0700)]
Move Buffer to extension model.
Paul Querna [Wed, 14 Jul 2010 06:55:15 +0000 (23:55 -0700)]
Move child process to extension model.
Paul Querna [Wed, 14 Jul 2010 06:51:08 +0000 (23:51 -0700)]
Move http parser to extension model.
Paul Querna [Wed, 14 Jul 2010 06:45:24 +0000 (23:45 -0700)]
Move signal_watcher to extension model.
Paul Querna [Wed, 14 Jul 2010 06:42:23 +0000 (23:42 -0700)]
Move cares to extension model
Paul Querna [Wed, 14 Jul 2010 06:38:49 +0000 (23:38 -0700)]
Move stdio to extension model.
Paul Querna [Wed, 14 Jul 2010 06:32:38 +0000 (23:32 -0700)]
Use the top level check for the bindings cache
(rather than each potential module having its own if check)
Paul Querna [Wed, 14 Jul 2010 06:22:41 +0000 (23:22 -0700)]
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.
isaacs [Sat, 3 Jul 2010 04:38:06 +0000 (21:38 -0700)]
Use execPath for default NODE_PATH, not installPrefix
Jérémy Lal [Wed, 14 Jul 2010 12:10:17 +0000 (14:10 +0200)]
Update ronnjs (fix rendering of html self-closing tags)
Ryan Dahl [Wed, 14 Jul 2010 16:50:17 +0000 (09:50 -0700)]
Update README, remove ref to Ronn
Mikeal Rogers [Wed, 14 Jul 2010 00:17:05 +0000 (17:17 -0700)]
Adds "pause" and "resume" events to pump and it's readable argument.
David Siegel [Thu, 1 Jul 2010 18:19:54 +0000 (20:19 +0200)]
fix corner-case bug in Module
and added a test to expose it
Ryan Dahl [Tue, 13 Jul 2010 17:16:33 +0000 (10:16 -0700)]
JSON is %j not %f
Paul Querna [Tue, 13 Jul 2010 08:33:51 +0000 (01:33 -0700)]
Add support for the module structure to process.dlopen.
Paul Querna [Tue, 13 Jul 2010 07:22:33 +0000 (00:22 -0700)]
Add basic structure and macros for node modules.
Paul Querna [Tue, 13 Jul 2010 06:59:57 +0000 (23:59 -0700)]
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.
Peter Griess [Mon, 12 Jul 2010 22:05:06 +0000 (15:05 -0700)]
Free kbuf[] in Verify::VerifyFinal().
Peter Griess [Mon, 12 Jul 2010 22:04:15 +0000 (15:04 -0700)]
Coverity stack size warnings in DefineConstants().
rick [Tue, 29 Jun 2010 01:33:21 +0000 (18:33 -0700)]
use delete for removing events after removing the final listener
Jérémy Lal [Mon, 12 Jul 2010 22:43:09 +0000 (00:43 +0200)]
make node.1 depend on make all
Jérémy Lal [Mon, 12 Jul 2010 22:18:59 +0000 (00:18 +0200)]
lib/node, not lib/nodejs !
Brian [Mon, 12 Jul 2010 20:00:52 +0000 (16:00 -0400)]
Improve docs
Added default values for many parameters, missing properties and methods,
and slight reorganization of the Child Process section.
Ryan Dahl [Mon, 12 Jul 2010 21:18:09 +0000 (14:18 -0700)]
Return child from execFile
Peter Griess [Mon, 12 Jul 2010 15:48:37 +0000 (08:48 -0700)]
Coverity fixes: src/platform_linux.cc
Peter Griess [Mon, 12 Jul 2010 15:48:33 +0000 (08:48 -0700)]
Coverity fixes: src/node_net
Peter Griess [Mon, 12 Jul 2010 15:48:28 +0000 (08:48 -0700)]
Coverity fixes: src/node_file
Peter Griess [Mon, 12 Jul 2010 15:48:16 +0000 (08:48 -0700)]
Coverity fixes: src/node_crypto
Peter Griess [Mon, 12 Jul 2010 15:47:45 +0000 (08:47 -0700)]
Coverity fixes: src/node.cc
Adam Wiggins [Sun, 11 Jul 2010 20:53:41 +0000 (13:53 -0700)]
docs for dgram module (UDP and unix sockets)
Jérémy Lal [Sun, 11 Jul 2010 22:37:12 +0000 (00:37 +0200)]
Fix spelling error
Jérémy Lal [Sun, 11 Jul 2010 21:50:24 +0000 (23:50 +0200)]
Use ronnjs 0.2 to generate docs. Small cosmetic change.
Jérémy Lal [Sat, 10 Jul 2010 18:38:42 +0000 (20:38 +0200)]
Environment variables NODE_PREFIX, NODE_PATH in node-waf
Those variables have following defaults :
- NODE_PREFIX is relative to the current path of the node_addon.py file
It is used as the base path of node include files.
- NODE_PATH is ~/.node_libraries
It's where modules are installed when calling `node-waf install`
Note .js files must be explicitely installed by the module's wscript.
Usage :
NODE_PREFIX=/usr/local NODE_PATH=~/.node_libraries node-waf configure
Ryan Dahl [Wed, 7 Jul 2010 18:10:01 +0000 (20:10 +0200)]
hack fix to v8 2.2.23
Ryan Dahl [Wed, 7 Jul 2010 17:47:38 +0000 (19:47 +0200)]
Upgrade V8 to 2.2.23
Dmitriy Shalashov [Wed, 7 Jul 2010 16:43:39 +0000 (18:43 +0200)]
Fix headers with empty value.
Brian [Sun, 4 Jul 2010 06:08:35 +0000 (02:08 -0400)]
Fix docs
Added consistency to the representation of optional parameters and separated
out multiple functions that were in a single heading.
Jerome Etienne [Wed, 7 Jul 2010 09:58:33 +0000 (11:58 +0200)]
Support of console.dir + console.assert
Ryan Dahl [Wed, 7 Jul 2010 13:13:36 +0000 (15:13 +0200)]
Fix addon example in docs
Ryan Dahl [Sat, 3 Jul 2010 09:31:03 +0000 (11:31 +0200)]
Remove a bunch of useless waf files
Ryan Dahl [Sat, 3 Jul 2010 08:54:35 +0000 (10:54 +0200)]
Use 'on' in the docs
Ryan Dahl [Sat, 3 Jul 2010 07:30:32 +0000 (09:30 +0200)]
Experimental: 'on' as alias to 'addListener'
Ryan Dahl [Sat, 3 Jul 2010 06:34:15 +0000 (08:34 +0200)]
bump version
Ryan Dahl [Sat, 3 Jul 2010 06:36:33 +0000 (08:36 +0200)]
Upgrade V8 to 2.2.21
Peter Griess [Tue, 22 Jun 2010 20:46:55 +0000 (15:46 -0500)]
Doc fixes for FD related features, upgrade.
- Add docs for 'fd' events, Server.listenFD(), Stream.write(...[, fd])
and http.Client 'upgrade' event.
Ryan Dahl [Sat, 3 Jul 2010 06:16:36 +0000 (08:16 +0200)]
Fix undefined_reference_in_new_context test
Ryan Dahl [Fri, 2 Jul 2010 06:36:53 +0000 (23:36 -0700)]
Remove unnecessary defines in node_events.cc
Ryan Dahl [Thu, 1 Jul 2010 21:31:42 +0000 (14:31 -0700)]
Add my awk script to update AUTHORS file
Ryan Dahl [Thu, 1 Jul 2010 21:29:06 +0000 (14:29 -0700)]
Amend .gitignore
Ryan Dahl [Thu, 1 Jul 2010 18:10:22 +0000 (11:10 -0700)]
Revert "Fix 'uncaughtException' for top level exceptions"
This reverts commit
8f8dcf8ed63b19a6c20915e12af83a3ad792f1d2.
Ryan Dahl [Wed, 30 Jun 2010 22:03:45 +0000 (15:03 -0700)]
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
Ryan Dahl [Wed, 30 Jun 2010 21:30:35 +0000 (14:30 -0700)]
Clean up indention on module compile
Remove strange code artifact
Ryan Dahl [Wed, 30 Jun 2010 07:54:03 +0000 (00:54 -0700)]
Expose new HTTP methods
Blake Mizerany [Wed, 30 Jun 2010 06:12:46 +0000 (23:12 -0700)]
fix whitespace errors
Dmitry Baranovskiy [Tue, 29 Jun 2010 08:24:43 +0000 (18:24 +1000)]
Rewrote QueryString.parse to make it smaller and more effective.
Also added ability to parse foo.bar=4 equal to foo[bar]=4
Added tests for this as well
Ryan Dahl [Wed, 30 Jun 2010 04:20:32 +0000 (21:20 -0700)]
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
9926dacd14c39276299712ced4a83fb043f27162.
Matt Ranney [Wed, 30 Jun 2010 03:10:01 +0000 (20:10 -0700)]
On overlapping buffers use memmove
Blake Mizerany [Wed, 30 Jun 2010 02:10:39 +0000 (19:10 -0700)]
Buffer.prototype.write: Indifferent order preference of encoding and offset
Ryan Dahl [Tue, 29 Jun 2010 16:36:50 +0000 (09:36 -0700)]
Revert "Buffer.copy should copy through sourceEnd, as specified."
This reverts commit
a2f70da4c9bf14a6e0c4a17cac11a5ab555ce90f.
Keep tests modifies a few edge checks on Copy()
Ryan Dahl [Wed, 30 Jun 2010 02:28:59 +0000 (19:28 -0700)]
Fix incorrect output on docs
Dmitry Baranovskiy [Mon, 28 Jun 2010 01:57:11 +0000 (11:57 +1000)]
Refactored isA, isBool, etc functions to use some of ES5 goodness.
Dmitry Baranovskiy [Mon, 28 Jun 2010 01:05:22 +0000 (11:05 +1000)]
sys.inherts to shadow constructor property from enumerability
thanks to ES5 features in V8 it is quite easily possible.
Ryan Dahl [Tue, 29 Jun 2010 16:53:12 +0000 (09:53 -0700)]
console.log: if not string, coerce into one
Ryan Dahl [Tue, 29 Jun 2010 04:09:44 +0000 (21:09 -0700)]
Simply C++ event emitter
Ryan Dahl [Tue, 29 Jun 2010 04:12:33 +0000 (21:12 -0700)]
If not string, console.log should just print it without trying to format
Ryan Dahl [Tue, 29 Jun 2010 03:47:12 +0000 (20:47 -0700)]
Stub out console.log format strings, info, warn, error
Ryan Dahl [Tue, 29 Jun 2010 00:27:17 +0000 (17:27 -0700)]
Lint node_script.cc
Ryan Dahl [Mon, 28 Jun 2010 22:37:29 +0000 (15:37 -0700)]
Use EVBACKEND_POLL on Solaris; select() is just a wrapper anyway
Ruben Rodriguez [Thu, 24 Jun 2010 10:17:05 +0000 (05:17 -0500)]
Added new API to Script, and implemented it in the REPL
Ryan Dahl [Mon, 28 Jun 2010 15:47:01 +0000 (08:47 -0700)]
Upgrade V8 to 2.2.20
Rasmus Andersson [Sun, 27 Jun 2010 11:51:39 +0000 (13:51 +0200)]
Use all available CPUs when building
Automatically set Options.options.jobs to the number of CPUs/cores on the
executing machine, unless the environment variable JOBS is set
Ryan Dahl [Fri, 25 Jun 2010 16:46:10 +0000 (09:46 -0700)]
Fix supported archs on website
Matt Ranney [Thu, 24 Jun 2010 19:26:23 +0000 (12:26 -0700)]
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.
Ryan Dahl [Thu, 24 Jun 2010 21:23:12 +0000 (14:23 -0700)]
Fix authors
Ryan Dahl [Thu, 24 Jun 2010 16:37:18 +0000 (09:37 -0700)]
Remove switch-replace residue
Ryan Dahl [Thu, 24 Jun 2010 14:51:45 +0000 (07:51 -0700)]
Edit binary encoding docs
Ryan Dahl [Thu, 24 Jun 2010 04:10:13 +0000 (21:10 -0700)]
Upgrade http-parser
Ryan Dahl [Thu, 24 Jun 2010 03:31:48 +0000 (20:31 -0700)]
Upgrade V8 to 2.2.19
Ryan Dahl [Thu, 24 Jun 2010 00:40:51 +0000 (17:40 -0700)]
:%s/sys.puts/console.log/g
and there was much rejoicing
Ryan Dahl [Wed, 23 Jun 2010 22:27:56 +0000 (15:27 -0700)]
Fix name in AUTHORS file
Ryan Dahl [Wed, 23 Jun 2010 16:09:15 +0000 (09:09 -0700)]
Fix error message
Ryan Dahl [Wed, 23 Jun 2010 02:37:29 +0000 (19:37 -0700)]
Remove ini.js
Ryan Dahl [Wed, 23 Jun 2010 02:33:01 +0000 (19:33 -0700)]
Remove mjsunit from repo
Mikeal Rogers [Sat, 29 May 2010 00:52:59 +0000 (17:52 -0700)]
Add sys.pump
Ryan Dahl [Tue, 22 Jun 2010 20:23:45 +0000 (13:23 -0700)]
Fix names in AUTHORS file
Ryan Dahl [Tue, 22 Jun 2010 20:14:03 +0000 (13:14 -0700)]
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.
Ryan Dahl [Tue, 22 Jun 2010 09:09:58 +0000 (02:09 -0700)]
Doc process.execPath
Marshall Culpepper [Tue, 22 Jun 2010 06:31:19 +0000 (01:31 -0500)]
Initial implementation of process.execPath
Darwin, Linux, Solaris. FreeBSD still needs testing.
TODO: Amend the tests where we use spawn with argv[0].