Nathan Rajlich
a33d1c959a
repl: add test case verifying the repl options usage
2012-03-27 17:49:10 -07:00
Nathan Rajlich
b187e96ec9
repl: add a 'writer' option to the repl
...
Previously this was a module-level setting, meaning that all REPL instances
had to share the same writer function. Turning it into one of the options
allows individual REPL instances to use their own writer function.
2012-03-27 17:39:14 -07:00
Nathan Rajlich
228ddddc1c
repl: ensure that 'repl.ignoreUndefined' is a boolean
2012-03-27 17:35:33 -07:00
Nathan Rajlich
e7065eaa93
repl: ensure that 'repl.useGlobal' is a boolean
2012-03-27 17:34:55 -07:00
Nathan Rajlich
f41901cdf6
repl: make ^D emit an 'end' event on the readline instance
...
Also emit 'exit' on the repl when 'end' is emitted on the readline.
Fixes `node debug test/fixtures/breakpoints.js` when ^D is pressed.
2012-03-27 13:54:49 -07:00
Fedor Indutny
00224771e3
Revert "debug: Wait 50ms before running the main module"
...
This reverts commit c781f17742 .
2012-03-28 01:40:45 +07:00
Fedor Indutny
5e8c2b0768
debugger: use v8 api to wait for a connection
...
Use v8::Debug::EnableAgent(_, _, true) to wait for incoming
debugger-client connection before emitting any break (or other) events.
This commit should fix test/simple/test-debugger-repl faults.
2012-03-28 01:37:54 +07:00
Nathan Rajlich
698e795a5f
repl: fix 'terminal' mode autodetection on global repls
...
Fixes test/simple/test-force-repl.js
2012-03-26 19:06:58 -07:00
Nathan Rajlich
aad12d0b26
readline: migrate ansi/vt100 logic from tty to readline
...
The overall goal here is to make readline more interoperable with other node
Streams like say a net.Socket instance, in "terminal" mode.
See #2922 for all the details.
Closes #2922 .
2012-03-26 15:21:25 -07:00
Alex Kocharin
ab518ae50e
readline: fix for terminals that insert newlines automatically
...
Fixes #2985 .
2012-03-26 09:21:55 -07:00
Shigeki Ohtsu
e7792e5d46
test: add test of tls.createServer(honorCipherOrder=true)
2012-03-26 05:03:51 -07:00
Zachary Scott
0dd8e0167d
doc: document fs.createReadStream() encodings
...
Fixes #2700 .
2012-03-26 00:25:45 +02:00
Andreas Madsen
83aae35b8e
doc: fix markup in cluster docs
2012-03-26 00:20:17 +02:00
Shigeki Ohtsu
4515987058
doc: fix default dgram multicast ttl to 1
2012-03-23 17:24:10 +01:00
Shigeki Ohtsu
75face6139
doc: fix TLS cipher names
2012-03-23 17:11:13 +01:00
Shigeki Ohtsu
8727e5f2be
test: add test of cleartextStream.getCipher() in tls
2012-03-23 17:09:50 +01:00
Shigeki Ohtsu
2cf5f040a5
doc: add cleartextStream.getCipher() in tls
2012-03-23 17:09:50 +01:00
ssuda
249c3c165a
Avoiding unnecessary ToString() calls
...
String::Utf8Value and String::AsciiValue constructors take Handle<Value>
So no need to convert to Handle<String>
2012-03-23 01:02:59 +01:00
Shigeki Ohtsu
e1199fa335
tls: fix CryptoStream.setKeepAlive()
2012-03-23 00:20:46 +01:00
Lal Jérémy
ef046bf4f6
test: generate 1024-bit keys, pacify openssl 1.0.1
2012-03-22 23:35:22 +01:00
Nathan Rajlich
feaa8a41c7
cmd: add a -i / --interactive flag to force the REPL
...
This is the only way to spawn a node child process in REPL mode, and will
also be needed to be able to use the REPL in MinTTY.
2012-03-21 00:05:25 -07:00
isaacs
d2389f8fab
debug repl tests: Add visibility, remove test that times out
...
The 'Can't backtrace now' message takes over 10 seconds to return.
That's too much time to have to wait for a test, and when it times
out, it was causing an orphaned node process.
This cleans up the node process, and also removes the test that's
timing out, so that the case is hit less often.
Todo: Make the backtrace message come back faster.
2012-03-20 19:48:07 -07:00
isaacs
c781f17742
debug: Wait 50ms before running the main module
2012-03-20 19:46:36 -07:00
isaacs
81cd3a3cd6
lint readline.js - single-quotes preferred
2012-03-20 19:42:34 -07:00
Erik Lundin
4b1d492561
test: merge typed arrays tests
...
Merge simple/test-typed-arrays-typenames into simple/test-typed-arrays.
2012-03-21 01:59:40 +01:00
Erik Lundin
f2ebf2469b
test: fix simple/test-typed-arrays
...
* It incorrectly uses assert(a, b) instead of assert.equal(a, b), meaning all
relevant assertions will pass regardless of whether they're supposed to when
a == true.
* It makes the assumption that elements in typed arrays for numerical types
spanning more than one byte, like Uint32Array, are stored little-endian first
on all machines.
* It contains assorted mistakes like assert(Int32Array, typeof v4) (that one
only passes thanks to point 1).
2012-03-21 01:59:33 +01:00
Johannes Wüller
7817f48322
fixed booleans being treated as strings, resulting in missing node-waf and npm
2012-03-20 17:46:08 -07:00
Alex Kocharin
06a058d731
readline: row-agnostic multiline readline implementation
...
Fixes #2959 .
2012-03-20 15:37:06 -07:00
Nathan Rajlich
8517089b3e
Revert "readline: add multiline support"
...
This reverts commit 443071db57 .
Patch was overly compilicated and made some incorrect assumptions about the
position of the cursor being at the bottom of the screen. @rlidwka and I are
working on getting a proper implementation written.
2012-03-20 15:37:06 -07:00
ssuda
253ec6a63d
process: don't use strdup()
...
file and cwd can be directly used from Utf8Value.
2012-03-20 17:59:21 +01:00
Alex Kocharin
415bff26fe
repl: fix space autocompletion bug
...
Tapping <SP> + <TAB> would exit the REPL.
2012-03-20 12:27:59 +01:00
Felix Geisendörfer
18240193ba
Expose http parse error codes
...
Currently http parse errors do not expose the error details available
from http_parser. This patch exposes the error code as `err.code`.
2012-03-19 19:00:16 -07:00
Shigeki Ohtsu
891f9defeb
No need to have NativeModule.require('fs') in Module._findPath()
2012-03-19 18:58:58 -07:00
isaacs
dce8682827
cluster: English language fixing
2012-03-19 14:28:39 -07:00
Andreas Madsen
94d337eb0f
cluster: kill workers when master dies
...
This patch will kill the worker once it has lost its connection with the parent.
However if the worker are doing a suicide, other measures will be used.
2012-03-19 14:22:36 -07:00
Andreas Madsen
d927fbc9ab
cluster: add graceful disconnect support
...
This patch add a worker.disconnect() method there will stop the worker from accepting
new connections and then stop the IPC. This allow the worker to die graceful.
When the IPC has been disconnected a 'disconnect' event will emit.
The patch also add a cluster.disconnect() method, this will call worker.disconnect() on
all connected workers. When the workers are disconneted it will then close all server
handlers. This allow the cluster itself to self terminate in a graceful way.
2012-03-19 13:29:01 -07:00
Andreas Madsen
ab32e9e043
child_process: emit 'channel closed' error instead of throwing
2012-03-19 11:55:41 -07:00
isaacs
89653cb32f
Upgrade npm to 1.1.10
2012-03-19 09:59:57 -07:00
Fedor Indutny
7418905aef
debugger: breakOnException
...
Do not break automatically on exception, fixes #2926
2012-03-19 22:21:29 +06:00
Fedor Indutny
b6cb6ce0d3
debugger: remove 'repl' command from builtinLibs
...
* It was displaying useless warning
2012-03-19 22:21:28 +06:00
Fedor Indutny
f61d4b7a87
debugger: exit process on repl exit
...
* When entering repl - clone 'SIGINT' listeners array (instead of using
existing), as it will be spliced in .removeAllListeners() call later.
2012-03-19 22:21:28 +06:00
Ben Noordhuis
d8c4ecea0b
test: fix race in simple/test-cluster-master-error
...
Said test checks that the workers shut down when the master errors but it failed
intermittently. Insert a small delay before doing the 'is dead?' check to give
the workers a chance to shut down.
2012-03-19 17:12:52 +01:00
Your Name
fb47a337ba
test: changed instances of == to ===
2012-03-19 14:24:46 +01:00
Nathan Rajlich
70e68893fe
build: make --openssl-use-sys a boolean option
...
Before you had to enter a truthy value like: --openssl-use-sys=1
2012-03-17 12:57:24 -07:00
isaacs
815169383e
Fix include logic was replacing https include with http
2012-03-17 11:11:07 -07:00
isaacs
7bee98bae2
Ignore 'making a build' artifacts
2012-03-17 11:11:03 -07:00
Alex Xu
5abcdc9671
build: fix configure with spaces in CC
2012-03-16 16:01:53 -07:00
isaacs
76a771b749
doc: Remove extraneous index.html's from hyperlinks
2012-03-16 08:19:26 -07:00
isaacs
46376888cd
Remove hard-coded version number from docs
2012-03-16 08:13:41 -07:00
isaacs
ec735cbce0
Merge remote-tracking branch 'ry/v0.6' into merge-v0.6
...
Conflicts:
ChangeLog
deps/npm/AUTHORS
deps/npm/html/api/bin.html
deps/npm/html/api/bugs.html
deps/npm/html/api/commands.html
deps/npm/html/api/config.html
deps/npm/html/api/deprecate.html
deps/npm/html/api/docs.html
deps/npm/html/api/edit.html
deps/npm/html/api/explore.html
deps/npm/html/api/help-search.html
deps/npm/html/api/init.html
deps/npm/html/api/install.html
deps/npm/html/api/link.html
deps/npm/html/api/load.html
deps/npm/html/api/ls.html
deps/npm/html/api/npm.html
deps/npm/html/api/outdated.html
deps/npm/html/api/owner.html
deps/npm/html/api/pack.html
deps/npm/html/api/prefix.html
deps/npm/html/api/prune.html
deps/npm/html/api/publish.html
deps/npm/html/api/rebuild.html
deps/npm/html/api/restart.html
deps/npm/html/api/root.html
deps/npm/html/api/run-script.html
deps/npm/html/api/search.html
deps/npm/html/api/shrinkwrap.html
deps/npm/html/api/start.html
deps/npm/html/api/stop.html
deps/npm/html/api/submodule.html
deps/npm/html/api/tag.html
deps/npm/html/api/test.html
deps/npm/html/api/uninstall.html
deps/npm/html/api/unpublish.html
deps/npm/html/api/update.html
deps/npm/html/api/version.html
deps/npm/html/api/view.html
deps/npm/html/api/whoami.html
deps/npm/html/doc/README.html
deps/npm/html/doc/adduser.html
deps/npm/html/doc/bin.html
deps/npm/html/doc/bugs.html
deps/npm/html/doc/build.html
deps/npm/html/doc/bundle.html
deps/npm/html/doc/cache.html
deps/npm/html/doc/changelog.html
deps/npm/html/doc/coding-style.html
deps/npm/html/doc/completion.html
deps/npm/html/doc/config.html
deps/npm/html/doc/deprecate.html
deps/npm/html/doc/developers.html
deps/npm/html/doc/disputes.html
deps/npm/html/doc/docs.html
deps/npm/html/doc/edit.html
deps/npm/html/doc/explore.html
deps/npm/html/doc/faq.html
deps/npm/html/doc/folders.html
deps/npm/html/doc/help-search.html
deps/npm/html/doc/help.html
deps/npm/html/doc/index.html
deps/npm/html/doc/init.html
deps/npm/html/doc/install.html
deps/npm/html/doc/json.html
deps/npm/html/doc/link.html
deps/npm/html/doc/list.html
deps/npm/html/doc/npm.html
deps/npm/html/doc/outdated.html
deps/npm/html/doc/owner.html
deps/npm/html/doc/pack.html
deps/npm/html/doc/prefix.html
deps/npm/html/doc/prune.html
deps/npm/html/doc/publish.html
deps/npm/html/doc/rebuild.html
deps/npm/html/doc/registry.html
deps/npm/html/doc/removing-npm.html
deps/npm/html/doc/restart.html
deps/npm/html/doc/root.html
deps/npm/html/doc/run-script.html
deps/npm/html/doc/scripts.html
deps/npm/html/doc/search.html
deps/npm/html/doc/semver.html
deps/npm/html/doc/shrinkwrap.html
deps/npm/html/doc/star.html
deps/npm/html/doc/start.html
deps/npm/html/doc/stop.html
deps/npm/html/doc/submodule.html
deps/npm/html/doc/tag.html
deps/npm/html/doc/test.html
deps/npm/html/doc/uninstall.html
deps/npm/html/doc/unpublish.html
deps/npm/html/doc/update.html
deps/npm/html/doc/version.html
deps/npm/html/doc/view.html
deps/npm/html/doc/whoami.html
deps/npm/man/man1/npm.1
deps/npm/man/man3/npm.3
deps/npm/node_modules/node-gyp/README.md
deps/npm/node_modules/node-gyp/lib/build.js
deps/npm/node_modules/node-gyp/lib/configure.js
deps/npm/node_modules/node-gyp/lib/install.js
deps/npm/node_modules/node-gyp/lib/node-gyp.js
deps/npm/node_modules/node-gyp/node_modules/ansi/package.json
deps/npm/node_modules/node-gyp/node_modules/glob/node_modules/minimatch/package.json
deps/npm/node_modules/node-gyp/node_modules/glob/package.json
deps/npm/node_modules/node-gyp/package.json
deps/npm/package.json
doc/about/index.html
doc/api/path.markdown
doc/community/index.html
doc/index.html
doc/logos/index.html
src/node_version.h
2012-03-16 08:06:54 -07:00