projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cab4d6
)
typed arrays: alias method subarray() to slice()
author
Ben Noordhuis
<info@bnoordhuis.nl>
Tue, 26 Jul 2011 21:38:25 +0000
(23:38 +0200)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Fri, 12 Aug 2011 16:42:24 +0000
(18:42 +0200)
src/v8_typed_array.cc
patch
|
blob
|
history
diff --git
a/src/v8_typed_array.cc
b/src/v8_typed_array.cc
index d98cd1d364e1ba43ea39475d7b9b82b480b735cd..ac76d00bb77ae05a63ead5603626d9f96f0c03dc 100644
(file)
--- a/
src/v8_typed_array.cc
+++ b/
src/v8_typed_array.cc
@@
-152,6
+152,7
@@
class TypedArray {
static BatchedMethods methods[] = {
{ "set", &TypedArray<TBytes, TEAType>::set },
+ { "slice", &TypedArray<TBytes, TEAType>::subarray },
{ "subarray", &TypedArray<TBytes, TEAType>::subarray },
};