Skip to content

Commit 83b211e

Browse files
committed
typed arrays: alias method subarray() to slice()
1 parent 7cab4d6 commit 83b211e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/v8_typed_array.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ class TypedArray {
152152

153153
static BatchedMethods methods[] = {
154154
{ "set", &TypedArray<TBytes, TEAType>::set },
155+
{ "slice", &TypedArray<TBytes, TEAType>::subarray },
155156
{ "subarray", &TypedArray<TBytes, TEAType>::subarray },
156157
};
157158

0 commit comments

Comments
 (0)