joyent/node — pull request #4130 by inolen (2012-10-13 03:11:31+00:00)
Title: Added slice() support to ArrayBuffer + tests

This patch adds in slice() support to ArrayBuffer as per:
http://www.khronos.org/registry/typedarray/specs/latest/#5

I'm working on some code that's shared on the client and server and this became an issue.

I wasn't entirely sure of the purpose of the signature parameter to v8::FunctionTemplate::New, so I followed suit with what TypedArray and DataView were doing right below in the same file. Everything else seemed straight forward but this is my first time working with v8 / node's source.

Tests are attached as well.