The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / test @ ed3d553d

Name Size
  addons
  disabled
  fixtures
  gc
  internet
  message
  pummel
  simple
common.js 5.91 KB

Latest revisions

# Date Author Comment
ed3d553d 02/11/2013 11:38 AM Ben Noordhuis

typed arrays: make call-as-function work for ctors

Turn call-as-function calls into constructor calls. Makes the following
snippet work:

var buf = ArrayBuffer(32);  // no 'new' but does the right thing
d5a5ae3c 02/11/2013 07:37 AM Ben Noordhuis

test: fix common.mustCall

Don't run the 'has function been called?' checks if the test is exiting
with an error because a failed check will mask the real exception.

v0.8 doesn't have the _fatalException machinery in src/node.js and
src/node.cc so it doesn't have this issue.

5a9d30bb 02/10/2013 03:31 PM Ben Noordhuis

typed arrays: copy Buffer in typed array constructor

Convert the Buffer to an ArrayBuffer. The typed_array.buffer property
should be an ArrayBuffer to avoid confusion: a Buffer doesn't have a
byteLength property and more importantly, its slice() method works...

fe103357 02/10/2013 09:22 AM Ben Noordhuis

typed arrays: make DataView throw on non-ArrayBuffer

Make the DataView constructor throw an exception when the first
argument is not an ArrayBuffer. Follows the spec and the browsers.

234551a2 02/10/2013 09:22 AM Ben Noordhuis

buffer: fix Buffer::HasInstance() check

It was returning true for typed arrays. Check that the object was
instantiated with the Buffer constructor.

144e21ed 02/10/2013 09:22 AM Ben Noordhuis

Revert "typed arrays: only share ArrayBuffer backing store"

We're going to fix this differently. The real bug is that
Buffer::HasInstance() returns true for typed arrays.

This reverts commit 01ee551e704776d8547250ac015a5463613afb45.

fd9d8b5e 02/10/2013 09:22 AM Ben Noordhuis

Revert "typed arrays: copy non-ArrayBuffer in DataView ctor"

We're going to follow browser behavior here.

This reverts commit 7b0770bff56122c245f83e8ee9608e1a0082c15e.

33b2aebb 02/07/2013 11:50 AM isaacs

stream: Writable should ignore encoding for buffers

Fix #4727
Fix einaros/ws#159

5cc3569f 02/06/2013 07:29 PM isaacs

Merge remote-tracking branch 'ry/v0.8' into master

Conflicts:
AUTHORS
ChangeLog
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...

7b0770bf 02/06/2013 04:26 PM Ben Noordhuis

typed arrays: copy non-ArrayBuffer in DataView ctor

This is commit 01ee551, except for the DataView type this time.

Make the behavior of DataView consistent with that of typed arrays:
make a copy of the backing store.

View revisions

Also available in: Atom