platform/upstream/nodejs.git
11 years agostreams2: Add high water mark for Readable
isaacs [Tue, 13 Nov 2012 07:31:25 +0000 (23:31 -0800)]
streams2: Add high water mark for Readable

Also, organize the numeric settings a bit on the ReadableState class

11 years agostreams2: Export Readable/Writable State classes
isaacs [Tue, 13 Nov 2012 07:30:10 +0000 (23:30 -0800)]
streams2: Export Readable/Writable State classes

11 years agostreams2: Fix duplex no-half-open logic
isaacs [Tue, 13 Nov 2012 07:28:56 +0000 (23:28 -0800)]
streams2: Fix duplex no-half-open logic

11 years agostreams2: Abstract out onread function
isaacs [Wed, 31 Oct 2012 21:30:30 +0000 (14:30 -0700)]
streams2: Abstract out onread function

11 years agostreams2: Use StringDecoder.end
isaacs [Fri, 12 Oct 2012 18:45:17 +0000 (11:45 -0700)]
streams2: Use StringDecoder.end

11 years agostreams2: flow() is not always bound to src
isaacs [Fri, 12 Oct 2012 17:03:03 +0000 (10:03 -0700)]
streams2: flow() is not always bound to src

11 years agotest: fixture for streams2 testing
isaacs [Wed, 10 Oct 2012 04:56:02 +0000 (21:56 -0700)]
test: fixture for streams2 testing

11 years agostreams2: Fix regression from Duplex ctor assignment
isaacs [Wed, 10 Oct 2012 00:42:47 +0000 (17:42 -0700)]
streams2: Fix regression from Duplex ctor assignment

11 years agotest: Writable bufferizing, non-bufferizing, and callbacks
isaacs [Wed, 10 Oct 2012 00:37:40 +0000 (17:37 -0700)]
test: Writable bufferizing, non-bufferizing, and callbacks

11 years agostreams2: Support write(chunk,[encoding],[callback])
isaacs [Wed, 10 Oct 2012 00:31:29 +0000 (17:31 -0700)]
streams2: Support write(chunk,[encoding],[callback])

11 years agostreams2: Allow Writables to opt out of pre-buffer-izing
isaacs [Tue, 9 Oct 2012 18:01:53 +0000 (11:01 -0700)]
streams2: Allow Writables to opt out of pre-buffer-izing

11 years agostreams2: ctor guards on Stream classes
isaacs [Mon, 8 Oct 2012 21:43:17 +0000 (14:43 -0700)]
streams2: ctor guards on Stream classes

11 years agostreams2: Tests of new interfaces
isaacs [Sun, 7 Oct 2012 20:26:03 +0000 (13:26 -0700)]
streams2: Tests of new interfaces

11 years agostreams2: Handle immediate synthetic transforms properly
isaacs [Sun, 7 Oct 2012 20:12:21 +0000 (13:12 -0700)]
streams2: Handle immediate synthetic transforms properly

11 years agostreams2: Correct drain/return logic
isaacs [Fri, 5 Oct 2012 14:45:03 +0000 (07:45 -0700)]
streams2: Correct drain/return logic

It was testing the length *before* adding the current chunk, which
is the opposite of correct.

Also, the return value was flipped.

11 years agostreams2: Allow 0 as a lowWaterMark value
isaacs [Fri, 5 Oct 2012 14:43:34 +0000 (07:43 -0700)]
streams2: Allow 0 as a lowWaterMark value

11 years agotransform: Automatically read() on _write when read buffer is empty
isaacs [Thu, 4 Oct 2012 23:58:43 +0000 (16:58 -0700)]
transform: Automatically read() on _write when read buffer is empty

11 years agostreams2: Make Transform streams pull-style
isaacs [Thu, 4 Oct 2012 20:26:16 +0000 (13:26 -0700)]
streams2: Make Transform streams pull-style

That is, the transform is triggered by a _read, not by a _write.

This way, backpressure works properly.

11 years agostreams2: setEncoding and abstract out endReadable
isaacs [Wed, 3 Oct 2012 23:52:14 +0000 (16:52 -0700)]
streams2: setEncoding and abstract out endReadable

11 years agostreams2: Set flowing=true when flowing
isaacs [Thu, 4 Oct 2012 00:43:27 +0000 (17:43 -0700)]
streams2: Set flowing=true when flowing

11 years agostreams2: Convert strings to buffers before passing to _write()
isaacs [Tue, 2 Oct 2012 23:28:02 +0000 (16:28 -0700)]
streams2: Convert strings to buffers before passing to _write()

11 years agostreams2: The new stream base classes
isaacs [Tue, 2 Oct 2012 22:44:50 +0000 (15:44 -0700)]
streams2: The new stream base classes

11 years agoAdd 'stream' as a native module in repl
isaacs [Tue, 2 Oct 2012 23:11:36 +0000 (16:11 -0700)]
Add 'stream' as a native module in repl

11 years agomodule: Support cycles in native module requires
isaacs [Tue, 2 Oct 2012 23:10:58 +0000 (16:10 -0700)]
module: Support cycles in native module requires

11 years agoDon't allow invalid encodings in StringDecoder class
isaacs [Fri, 5 Oct 2012 00:43:15 +0000 (17:43 -0700)]
Don't allow invalid encodings in StringDecoder class

11 years agoMerge remote-tracking branch 'ry/v0.8' into master
isaacs [Fri, 14 Dec 2012 00:57:58 +0000 (16:57 -0800)]
Merge remote-tracking branch 'ry/v0.8' into master

Conflicts:
AUTHORS
ChangeLog
deps/uv/test/test-spawn.c
deps/uv/uv.gyp
src/cares_wrap.cc
src/node.cc
src/node_version.h
test/simple/test-buffer.js
tools/gyp/pylib/gyp/common.py
tools/install.py

11 years agoblog: Post for 0.8.16
isaacs [Thu, 13 Dec 2012 19:50:47 +0000 (11:50 -0800)]
blog: Post for 0.8.16

11 years agoNow working on 0.8.17
isaacs [Thu, 13 Dec 2012 19:50:35 +0000 (11:50 -0800)]
Now working on 0.8.17

11 years agoMerge commit 'v0.8.16' into v0.8
isaacs [Thu, 13 Dec 2012 19:50:15 +0000 (11:50 -0800)]
Merge commit 'v0.8.16' into v0.8

11 years ago2012.12.13, Version 0.8.16 (Stable) v0.8.16
isaacs [Wed, 12 Dec 2012 22:44:54 +0000 (14:44 -0800)]
2012.12.13, Version 0.8.16 (Stable)

* npm: Upgrade to 1.1.69

* fs: fix WriteStream/ReadStream fd leaks (Ben Noordhuis)

* crypto: fix leak in GetPeerCertificate (Fedor Indutny)

* buffer: Don't double-negate numeric buffer arg (Trevor Norris)

* net: More accurate IP address validation and IPv6 dotted notation. (Joshua Erickson)

11 years agodeps: upgrade libuv to e079a99
Ben Noordhuis [Thu, 13 Dec 2012 19:23:01 +0000 (20:23 +0100)]
deps: upgrade libuv to e079a99

11 years agonpm: Upgrade to v1.1.69
isaacs [Wed, 12 Dec 2012 22:41:28 +0000 (14:41 -0800)]
npm: Upgrade to v1.1.69

11 years agofs: fix WriteStream fd leak
Ben Noordhuis [Tue, 11 Dec 2012 15:01:58 +0000 (16:01 +0100)]
fs: fix WriteStream fd leak

Close the file descriptor when a write operation fails.

Fixes #4387.

11 years agofs: fix ReadStream fd leak
Ben Noordhuis [Tue, 11 Dec 2012 13:45:45 +0000 (14:45 +0100)]
fs: fix ReadStream fd leak

Close the file descriptor when a read operation fails.

Fixes #4387.

11 years agotest: add common.mustCall function
Ben Noordhuis [Tue, 31 Jul 2012 15:47:53 +0000 (17:47 +0200)]
test: add common.mustCall function

Verifies that the callback gets invoked <n> times during the lifetime of the
test script.

This is a back-port of commit d0e6c3f from the master branch.

11 years agodoc: Add nodejstr to community page
isaacs [Tue, 11 Dec 2012 00:56:49 +0000 (16:56 -0800)]
doc: Add nodejstr to community page

11 years agoevents: fix typos in code comment
Ryunosuke SATO [Mon, 10 Dec 2012 09:32:56 +0000 (18:32 +0900)]
events: fix typos in code comment

- newListeners -> newListener

11 years agoevents: setMaxListeners() should not have side effects
Ryunosuke SATO [Mon, 10 Dec 2012 09:16:13 +0000 (18:16 +0900)]
events: setMaxListeners() should not have side effects

This object initialization has been unnecessary since 12cf730b.

Ref #3803.

11 years agoevents: use assigned variable instead of arguments
Ryunosuke SATO [Mon, 10 Dec 2012 09:07:23 +0000 (18:07 +0900)]
events: use assigned variable instead of arguments

Always `arguments[0]` is used when `EventEmitter#emit` called.
Using assigned variable is faster than `arguments[0]`.

11 years agoevents: use null assignment instead of deleting property
Ryunosuke SATO [Mon, 10 Dec 2012 04:34:33 +0000 (13:34 +0900)]
events: use null assignment instead of deleting property

11 years agohttp: protect against response splitting attacks
Bert Belder [Mon, 19 Nov 2012 19:42:35 +0000 (20:42 +0100)]
http: protect against response splitting attacks

11 years agolint
isaacs [Sat, 8 Dec 2012 00:58:16 +0000 (16:58 -0800)]
lint

introduced in 5b65638.

11 years agofs: Raise error when null bytes detected in paths
isaacs [Sat, 8 Dec 2012 00:50:12 +0000 (16:50 -0800)]
fs: Raise error when null bytes detected in paths

Reworking of @bnoordhuis's more aggressive approach.

11 years agodoc: remove broken require.extensions example
Ben Noordhuis [Thu, 6 Dec 2012 20:58:29 +0000 (21:58 +0100)]
doc: remove broken require.extensions example

Fixes #4384.

11 years agotls, https: add tls handshake timeout
Ben Noordhuis [Mon, 3 Dec 2012 17:29:01 +0000 (18:29 +0100)]
tls, https: add tls handshake timeout

Don't allow connections to stall indefinitely if the SSL/TLS handshake does
not complete.

Adds a new tls.Server and https.Server configuration option, handshakeTimeout.

Fixes #4355.

11 years agoprocess: add getgroups(), setgroups(), initgroups()
Ben Noordhuis [Tue, 4 Dec 2012 05:36:23 +0000 (06:36 +0100)]
process: add getgroups(), setgroups(), initgroups()

DRY the getuid(), getgid(), etc. functions while we're at it.

11 years agobuffer: remove unused #includes
Ben Noordhuis [Thu, 6 Dec 2012 03:45:11 +0000 (04:45 +0100)]
buffer: remove unused #includes

11 years agotest: remove simple/test-child-process-fork2
Ben Noordhuis [Wed, 5 Dec 2012 04:43:29 +0000 (05:43 +0100)]
test: remove simple/test-child-process-fork2

The test assumes the parent and the child are scheduled fairly. Probably true
most of the time but not always, making it fail spuriously.

Bad test, remove it.

11 years agotest: fix simple/test-debug-brk-file race condition
Shigeki Ohtsu [Wed, 28 Nov 2012 08:18:06 +0000 (17:18 +0900)]
test: fix simple/test-debug-brk-file race condition

V8 debug agent needs some time to be ready and no longer sends the first event
break response to a debug client. We wait some time to connect the agent and
check its break status by obtaining breakpoint list and seeing if it exists on
line 0.

11 years agofs: add long stacktrace debugging facility
Ben Noordhuis [Tue, 4 Dec 2012 02:35:54 +0000 (03:35 +0100)]
fs: add long stacktrace debugging facility

Enable long stacktraces if NODE_DEBUG=fs is set in the environment. Only
applies to the default rethrow callback; it's to help you find places where
you forgot to pass in a callback.

11 years agofs: fix 'object is not a function' callback errors
Ben Noordhuis [Tue, 4 Dec 2012 02:17:52 +0000 (03:17 +0100)]
fs: fix 'object is not a function' callback errors

Use a default callback if the user omitted one. Avoids errors like the one
below:

  fs.js:777
      if (err) return callback(err);
                      ^
  TypeError: object is not a function
          at fs.appendFile (fs.js:777:21)
          at Object.oncomplete (fs.js:297:15)

This commit fixes the behavior of fs.lchmod(), fs.lchown() and fs.readFile()
when the callback is omitted. Before, they silently swallowed errors.

Fixes #4352.

11 years agoos: throw when os.networkInterfaces() fails
Bert Belder [Mon, 3 Dec 2012 21:34:27 +0000 (22:34 +0100)]
os: throw when os.networkInterfaces() fails

11 years agocrypto: fix leak in GetPeerCertificate
Fedor Indutny [Sat, 1 Dec 2012 18:26:40 +0000 (22:26 +0400)]
crypto: fix leak in GetPeerCertificate

11 years agocrypto: fix leak in GetPeerCertificate
Fedor Indutny [Sat, 1 Dec 2012 18:26:40 +0000 (22:26 +0400)]
crypto: fix leak in GetPeerCertificate

11 years agotest: fix simple/test-setproctitle on freebsd
Ben Noordhuis [Mon, 3 Dec 2012 02:08:17 +0000 (03:08 +0100)]
test: fix simple/test-setproctitle on freebsd

11 years agobuild: avoid -Wno-old-style-declaration with gcc 4.2
Ben Noordhuis [Mon, 3 Dec 2012 01:19:15 +0000 (02:19 +0100)]
build: avoid -Wno-old-style-declaration with gcc 4.2

Fixes the build on FreeBSD <= 9 with the default compiler.

Fixes #4186.

11 years agotools: fix platform detection on freebsd, sunos
Ben Noordhuis [Sun, 2 Dec 2012 02:01:17 +0000 (03:01 +0100)]
tools: fix platform detection on freebsd, sunos

This is a back-port of upstream gyp commit r1482.

11 years agoinstall: fix freebsd man page location
Ben Noordhuis [Sun, 2 Dec 2012 01:54:14 +0000 (02:54 +0100)]
install: fix freebsd man page location

Man pages go into $PREFIX/man on FreeBSD, not $PREFIX/share/man.

11 years agotest: TTY only has writeBuffer(), not write()
isaacs [Sat, 1 Dec 2012 02:21:01 +0000 (18:21 -0800)]
test: TTY only has writeBuffer(), not write()

This test is only passing because it's skipped normally.

11 years agobenchmark: Add net-pipe benchmark
isaacs [Mon, 12 Nov 2012 19:01:03 +0000 (11:01 -0800)]
benchmark: Add net-pipe benchmark

Just sends a buffer to a server, which echoes it back, and then measures
the Gbits/second.  Very similar to throughput.js, but using a single
process, so that it's possible to dtrace and get the jsstack frames for
profile comparison.

11 years agoFix dropped html tag
Lewuathe [Fri, 30 Nov 2012 01:13:52 +0000 (10:13 +0900)]
Fix dropped html tag

11 years agobuffer: Don't double-negate numeric buffer arg
Trevor Norris [Fri, 30 Nov 2012 21:02:39 +0000 (13:02 -0800)]
buffer: Don't double-negate numeric buffer arg

Fix #4331

Using double negate forces values into 32bit space. Because of this
Math.ceil needs to be used. Since NaN comparisons are always false, use
that to our advantage to return 0 if it is.

Also added two tests to verify the changes.

11 years agowebsite: typo fixes
Kyle Robinson Young [Thu, 29 Nov 2012 18:59:12 +0000 (10:59 -0800)]
website: typo fixes

11 years agonet: More accurate IP address validation and IPv6 dotted notation.
Joshua Erickson [Tue, 9 Oct 2012 00:51:59 +0000 (19:51 -0500)]
net: More accurate IP address validation and IPv6 dotted notation.

* Added isIP method to make use of inet_pton to cares_wrap.cc
* Modified net.isIP() to make use of new C++ isIP method.
* Added new tests to test-net-isip.js.

This is a back-port of commit fb6377e from the master branch.

11 years agodoc: Fix missing link target to 'https.request()'
Ryunosuke SATO [Tue, 27 Nov 2012 14:52:49 +0000 (23:52 +0900)]
doc: Fix missing link target to 'https.request()'

11 years agotest: disable eio-race tests
Chad Rhyner [Sat, 24 Nov 2012 04:49:42 +0000 (20:49 -0800)]
test: disable eio-race tests

Disabled the following unit tests:

* test-eio-race.js
* test-eio-race2.js
* test-eio-race4.js

These tests are known to fail on busy boxes due to being timing sensitive,
and are deemed not meaningful tests.

See https://github.com/joyent/node/issues/4272

Fixes #4272.

11 years agobuild: support ARM in makefile target 'binary'
Adam Malcontenti-Wilson [Tue, 27 Nov 2012 05:03:36 +0000 (16:03 +1100)]
build: support ARM in makefile target 'binary'

11 years agobuild: add $(PYTHON) when calling configure
Michael Axiak [Mon, 26 Nov 2012 18:40:24 +0000 (13:40 -0500)]
build: add $(PYTHON) when calling configure

11 years agoblog: Post for v0.8.15
isaacs [Mon, 26 Nov 2012 17:18:51 +0000 (09:18 -0800)]
blog: Post for v0.8.15

11 years agoNow working on 0.8.16
isaacs [Mon, 26 Nov 2012 17:18:33 +0000 (09:18 -0800)]
Now working on 0.8.16

11 years agoMerge branch 'v0.8.15-release' into v0.8
isaacs [Mon, 26 Nov 2012 17:12:52 +0000 (09:12 -0800)]
Merge branch 'v0.8.15-release' into v0.8

11 years ago2012.11.26, Version 0.8.15 (Stable) v0.8.15
isaacs [Thu, 25 Oct 2012 20:49:32 +0000 (13:49 -0700)]
2012.11.26, Version 0.8.15 (Stable)

* npm: Upgrade to 1.1.66 (isaacs)

* linux: use /proc/cpuinfo for CPU frequency (Ben Noordhuis)

* windows: map WSAESHUTDOWN to UV_EPIPE (Ben Noordhuis)

* windows: map ERROR_GEN_FAILURE to UV_EIO (Bert Belder)

* unix: do not set environ unless one is provided (Charlie McConnell)

* domains: don't crash if domain is set to null (Bert Belder)

* windows: fix the x64 debug build (Bert Belder)

* net, tls: fix connect() resource leak (Ben Noordhuis)

11 years agotls: fix tls.connect() resource leak
Ben Noordhuis [Mon, 26 Nov 2012 00:50:04 +0000 (01:50 +0100)]
tls: fix tls.connect() resource leak

The 'secureConnect' event listener was attached with .on(), which blocked it
from getting garbage collected. Use .once() instead.

Fixes #4308.

11 years agonet: fix net.connect() resource leak
Ben Noordhuis [Sat, 24 Nov 2012 14:24:36 +0000 (15:24 +0100)]
net: fix net.connect() resource leak

The 'connect' event listener was attached with .on(), which blocked it from
getting garbage collected. Use .once() instead.

Fixes #4308.

11 years agojs2c: raise proper Exception, not a string
Ben Noordhuis [Sat, 24 Nov 2012 00:14:06 +0000 (01:14 +0100)]
js2c: raise proper Exception, not a string

Fixes the following error message:

  TypeError: exceptions must be old-style classes or derived
  from BaseException, not str

Fixes #4303.

11 years agocrypto: allow negative numbers in setOptions()
Ben Noordhuis [Fri, 23 Nov 2012 22:53:15 +0000 (23:53 +0100)]
crypto: allow negative numbers in setOptions()

OR'ing together two large values, like `SSL_OP_ALL | SSL_OP_NO_TICKET`,
produces a negative number. To wit:

  assert((0x80000000 | 0x4000) === -0x7fffc000); // true
  assert((0x80000000 | 0x4000) ===  0x80004000); // false!

It's easy to work around by doing a logical shift, like this:

  assert((0x80000000 | 0x4000) >>> 0 ===  0x80004000); // true

But that's not very intuitive. Let's be more lenient in what we accept.

11 years agoblog: Don't filter out non-latest release notes
isaacs [Fri, 23 Nov 2012 20:54:33 +0000 (12:54 -0800)]
blog: Don't filter out non-latest release notes

This causes too many people to ask me why it's broken.

11 years agonpm: Upgrade to 1.1.66
isaacs [Fri, 23 Nov 2012 20:51:23 +0000 (12:51 -0800)]
npm: Upgrade to 1.1.66

11 years agodoc: Add lines about additonal uses of Buffer
Trevor Norris [Thu, 22 Nov 2012 17:30:18 +0000 (09:30 -0800)]
doc: Add lines about additonal uses of Buffer

That Buffers can be used with Typed Array Views and DataViews. Included
are a couple simple examples.

Closes #4257.

11 years agoconstants: fix wrapping of large constants
Ben Noordhuis [Thu, 22 Nov 2012 15:10:35 +0000 (16:10 +0100)]
constants: fix wrapping of large constants

Use Number::New() instead of Integer::New(). The latter wraps large values,
e.g. 0x80000000 becomes -2147483648 instead of 2147483648.

11 years agobuild: disable use of thin archive
Shigeki Ohtsu [Wed, 21 Nov 2012 08:34:56 +0000 (17:34 +0900)]
build: disable use of thin archive

Thin archive needs binutils >= 2.19, disable it for supporting old ar
even if static libraries are linked within a local build.

11 years agowindows: add tracing with performance counters
Scott Blomquist [Tue, 20 Nov 2012 23:27:22 +0000 (00:27 +0100)]
windows: add tracing with performance counters

Patch by Henry Rawas and Scott Blomquist.

11 years agowindows: fix normalization of UNC paths
Bert Belder [Wed, 21 Nov 2012 00:00:45 +0000 (01:00 +0100)]
windows: fix normalization of UNC paths

11 years agov8: fix dragonflybsd build
Ben Noordhuis [Tue, 20 Nov 2012 17:12:07 +0000 (18:12 +0100)]
v8: fix dragonflybsd build

* fix gyp build
* don't require libexecinfo, it's not there
* libpthread doesn't implement sem_timedwait(), fall back to sem_wait()

Upstreamed in https://codereview.chromium.org/11421013/

11 years agobuild: make python executable configurable
Ben Noordhuis [Tue, 20 Nov 2012 16:28:28 +0000 (17:28 +0100)]
build: make python executable configurable

Upstreamed in https://codereview.chromium.org/11418101/

Fixes #4287.

11 years agodeps: upgrade cares to 213f2b7
Ben Noordhuis [Tue, 20 Nov 2012 20:42:21 +0000 (21:42 +0100)]
deps: upgrade cares to 213f2b7

11 years agodeps: upgrade libuv to fc5984f
Ben Noordhuis [Tue, 20 Nov 2012 19:11:08 +0000 (20:11 +0100)]
deps: upgrade libuv to fc5984f

11 years agodeps: upgrade libuv to 5639b2f
Ben Noordhuis [Tue, 20 Nov 2012 18:21:48 +0000 (19:21 +0100)]
deps: upgrade libuv to 5639b2f

11 years agodoc: fix typo in setPrivateKey function signature
Tim Kuijsten [Tue, 20 Nov 2012 16:15:17 +0000 (17:15 +0100)]
doc: fix typo in setPrivateKey function signature

11 years agotools: update gyp to r1535
Ben Noordhuis [Tue, 20 Nov 2012 14:51:25 +0000 (15:51 +0100)]
tools: update gyp to r1535

This commit contains one additional patch that makes gyp work on DragonFlyBSD,
see https://codereview.chromium.org/11348152/ for details.

11 years agocrypto: fix ssl error handling
Sergey Kholodilov [Fri, 9 Nov 2012 20:32:28 +0000 (00:32 +0400)]
crypto: fix ssl error handling

Make HandleSSLError() correctly process a zero status code: sometimes it
indicates an error and sometimes it doesn't.

11 years agonode: remove eio-emul.h
Ben Noordhuis [Fri, 16 Nov 2012 22:44:42 +0000 (23:44 +0100)]
node: remove eio-emul.h

The purpose of this file was to remap the old libeio API to the new one.
We dropped libeio in ee77a6a and this file has been broken ever since.

Ergo, remove it.

11 years agobuild: allow linking against system libuv
Stephen Gallagher [Tue, 23 Oct 2012 23:54:22 +0000 (19:54 -0400)]
build: allow linking against system libuv

11 years agodeps: upgrade libuv to 665a316
Ben Noordhuis [Fri, 16 Nov 2012 16:57:15 +0000 (17:57 +0100)]
deps: upgrade libuv to 665a316

11 years agobench: Use hrtime in throughput benchmark
isaacs [Sun, 11 Nov 2012 18:02:33 +0000 (10:02 -0800)]
bench: Use hrtime in throughput benchmark

11 years agorepl: don't interpret floating point numbers
Ben Noordhuis [Sat, 10 Nov 2012 17:21:13 +0000 (18:21 +0100)]
repl: don't interpret floating point numbers

Don't interpret floating point numbers, e.g. ".1234", as REPL commands.

Fixes #4268.

11 years agobuffer: remove duplicate assertion tests
Trevor Norris [Fri, 9 Nov 2012 22:02:45 +0000 (14:02 -0800)]
buffer: remove duplicate assertion tests

Many assertion tests are duplicated in buffer.js. These few could be easily
removed and still have all tests pass.

11 years agodomains: don't crash if domain is set to null
Bert Belder [Thu, 8 Nov 2012 23:49:24 +0000 (00:49 +0100)]
domains: don't crash if domain is set to null

Closes #4256

11 years agowindows: fix the x64 debug build
Bert Belder [Thu, 8 Nov 2012 22:54:53 +0000 (23:54 +0100)]
windows: fix the x64 debug build

11 years agoos: add os.endianness() function
Nathan Rajlich [Thu, 8 Nov 2012 20:31:45 +0000 (12:31 -0800)]
os: add os.endianness() function