Index: src/harmony-typedarray.js |
diff --git a/src/harmony-typedarray.js b/src/harmony-typedarray.js |
index 90679e0c1fe1afffb6b6b7115e93719e02d7b0c1..59c9a79bd22144422d1bce9559c4cf1367dc37d8 100644 |
--- a/src/harmony-typedarray.js |
+++ b/src/harmony-typedarray.js |
@@ -90,6 +90,15 @@ function TypedArrayFindIndex(predicate, thisArg) { |
} |
%FunctionSetLength(TypedArrayFindIndex, 1); |
+// ES6 draft 05-18-15, section 22.2.3.21 |
+function TypedArrayReverse() { |
+ if (!%IsTypedArray(this)) throw MakeTypeError(kNotTypedArray); |
+ |
+ var length = %_TypedArrayGetLength(this); |
+ |
+ return $innerArrayReverse(this, length); |
+} |
+ |
// ES6 draft 08-24-14, section 22.2.2.2 |
function TypedArrayOf() { |
@@ -140,7 +149,8 @@ macro EXTEND_TYPED_ARRAY(NAME) |
"forEach", TypedArrayForEach, |
"find", TypedArrayFind, |
"findIndex", TypedArrayFindIndex, |
- "fill", TypedArrayFill |
+ "fill", TypedArrayFill, |
+ "reverse", TypedArrayReverse |
]); |
endmacro |