Ryan Dahl
2d256f34c5
Change example at beginning of api.txt
2009-09-23 17:00:20 +02:00
Ryan Dahl
8c7babdf10
Syntax highlighting for <tt> elements.
2009-09-23 16:58:28 +02:00
Ryan Dahl
a3229ed7b7
Add documentation about requiring system modules.
2009-09-23 16:53:34 +02:00
Ryan Dahl
106287c368
Tighten window on timer test.
2009-09-23 16:40:04 +02:00
Ryan Dahl
8a5194b7cf
cpplint.js file.{cc,h}
2009-09-23 16:33:24 +02:00
Ryan Dahl
c53aeb5a02
Call "connection" event after connection object is fully formed.
...
This became an apparent problem when adding setNoDelay because the command
was ignored if issued during the "connection" event.
2009-09-23 16:09:40 +02:00
Ryan Dahl
e0ec0036ca
Add connection.setNoDelay() to disable Nagle algorithm.
2009-09-23 15:36:34 +02:00
Ryan Dahl
2df13c7310
Upgrade v8 to 1.3.13
2009-09-23 14:49:51 +02:00
Felix Geisendörfer
be3dddeec9
Syntax highlighting for api.html.
...
Asciidoc does not seem to support including custom JS, so this patch is a hack
for toc.js to dynamically include the needed CSS / JS. It should be ok unless
somebody has a better approach ...
2009-09-23 11:25:31 +02:00
Ryan Dahl
76f4962636
Bugfix: EIOPromise::Create was allocating two EIOPromise objects
...
This is because it would call the javascript initializer which executed
Promise::New, and then it would rewrap the handle. Instead I make an
explicit inheritance from EIOPromise to Promise.
This seems to fix a memory leak which was reported by Ray Morgan:
http://groups.google.com/group/nodejs/browse_thread/thread/e38949b1989da1d7
2009-09-23 00:17:50 +02:00
Ryan Dahl
663deb3828
delete[] instead of delete for arrays.
2009-09-23 00:17:49 +02:00
Ryan Dahl
8549994c4b
Add readFile to '/file.js'
...
Thanks Hagen.
2009-09-22 17:28:04 +02:00
Ryan Dahl
a02ca7a590
Add writeFile() to /file.js
...
Initial patch by Tim Caswell.
2009-09-22 12:15:49 +02:00
Ryan Dahl
07792afe0a
Remove "raw" encoding. Rename "raws" to "binary".
...
Deprecation warnings have been added to help the conversion to this new API.
2009-09-21 12:27:22 +02:00
Ryan Dahl
2db7d6755e
Move node-repl to bin/node-repl
2009-09-20 20:54:19 +02:00
Ryan Dahl
cd70d4a9c0
Add "/file.js" buffered disk I/O object.
...
This is similar to the class node.File which was removed in
82cb1b5acb
.
Needs documentation.
2009-09-20 20:42:23 +02:00
Ryan Dahl
4b8f503fac
Move mjsunit.js to system module directory.
2009-09-20 18:19:33 +02:00
Ryan Dahl
7ddf1f569a
Improve error message for requiring system modules.
2009-09-20 18:03:55 +02:00
Ryan Dahl
949f24305b
Add node.error(); p() outputs to stderr.
2009-09-20 17:40:14 +02:00
Ryan Dahl
3311122ccb
Throw ret value from wait() only if it's there.
2009-09-20 17:35:07 +02:00
Ryan Dahl
389c80aece
return error from cat_promise in node.fs.cat
2009-09-20 17:34:27 +02:00
Ryan Dahl
c8b143bf30
Absolute path names for require() refer to node.libraryPaths
2009-09-19 17:21:12 +02:00
Ryan Dahl
5ddc4f5d0c
bump version
2009-09-18 18:32:25 +02:00
Ryan Dahl
ab530bb211
Upgrade v8 to 1.3.11
2009-09-17 16:16:41 +02:00
Ryan Dahl
605b7e9763
Add node.installPrefix
2009-09-17 15:36:31 +02:00
Ryan Dahl
6f31a3763d
Add more explanation to docs for request.finish().
2009-09-17 15:15:05 +02:00
Ryan Dahl
b54fad9b3f
Bugfix: node.fs.write() was stack allocating buffer.
...
Since the buffer is passed to the thread pool it needs to be heap allocated.
Thanks to Jon Crosby and Tim Caswell for debugging this.
2009-09-17 14:58:18 +02:00
Jon Crosby
e57c16bc2d
Add failing spec for node.fs.write
2009-09-17 14:58:01 +02:00
Ryan Dahl
9db2e5f375
Default to utf8 encoding for node.fs.cat()
2009-09-15 22:41:25 +02:00
Ryan Dahl
16185ae57e
update doc for node.fs.write()
2009-09-15 22:32:37 +02:00
Ryan Dahl
083d150bc4
Add node.exec()
2009-09-15 15:42:16 +02:00
Ryan Dahl
fdc136df69
Add documentation for promise.emitSuccess and emitError
2009-09-15 15:25:06 +02:00
Ryan Dahl
7fa694a3b6
fix typo on website
2009-09-14 22:44:25 +02:00
Ryan Dahl
5fdf9bbaa9
Remove unused variable in http.cc
2009-09-14 16:34:31 +02:00
Ryan Dahl
4f98e2deb3
Fix buffering logic for HTTP outgoing messages.
...
Was sending two packets instead of one for some short messages, and even 3,
for short chunked-encoded messages. Also use the more general Encode()
function for receiving HTTP bodies.
Gives ~6% improvement on "hello world" web server benchmarks.
2009-09-14 16:25:41 +02:00
Ryan Dahl
f389f923b8
Remove erroneously placed EV_DEFAULT_UC_
2009-09-13 23:44:56 +02:00
Ryan Dahl
0d1ec5fdbe
API: node.fs.read() takes a normal encoding parameter.
...
Removes node.UTF8, node.RAW, node.ASCII enum versions of the encodings.
node.fs.read() now supports "raws" encoding.
2009-09-13 18:31:17 +02:00
Ryan Dahl
d1a13bdd35
Fix default encoding for outgoing HTTP messages
...
Was causing send() to throw argument errors because arrays of ints would get
paired with the "raws" encoding. The bug was introduced in 8eb1294
.
2009-09-13 18:19:03 +02:00
Ryan Dahl
ef300d19cb
Bugfix: ReportException shouldn't forget the top frame.
2009-09-13 17:43:19 +02:00
Ryan Dahl
8eb1294f87
Bugfix: sendBody wasn't setting encoding
2009-09-13 12:44:09 +02:00
Ryan Dahl
69e8a01c58
Fix broken asciidoc section
2009-09-12 19:14:16 +02:00
Jeff Smick
bc6f381c98
Use "platform.architecture()" to find the proper architecture.
...
In Snow Leopard "platform.machine()" returns "i386" while
"platform.architecture()" returns ('64bit',''). Using information from both
we can determine the proper architecture
This reverts commit ea29e137b5
re-enabling the
64bit build on Macintosh.
2009-09-12 14:22:57 +02:00
Ryan
227638bac1
Lint
2009-09-12 14:21:37 +02:00
Ryan
dbe116ddfe
API: Change arguments of emit(), emitSuccess(), emitError()
...
Instead of
myemitter.emit("event", [arg1, arg2, arg3]);
the API is now
myemitter.emit("event", arg1, arg2, arg3);
This change saves the creation of an extra array object for each event.
The implementation is also slightly more simple.
2009-09-12 14:21:37 +02:00
Ryan
97355f3613
spell check api.txt
2009-09-11 21:27:20 +02:00
Ryan
12bb0d46ce
bump version
2009-09-11 21:06:50 +02:00
Ryan
5629fd574a
Add doc note about 'raws' encoding
2009-09-11 21:04:02 +02:00
Ryan
d03c7e38e9
Just add the gernerated doc files. Make life easier.
2009-09-11 20:51:39 +02:00
Ryan
d851bf9a66
Revert "Add xsl files to doc directory so people can build docs easily"
...
This reverts commit 412b4636c8
.
2009-09-11 20:47:45 +02:00
Ryan
412b4636c8
Add xsl files to doc directory so people can build docs easily
2009-09-11 20:34:55 +02:00