| Index: src/builtins/builtins-typedarray.cc
|
| diff --git a/src/builtins/builtins-typedarray.cc b/src/builtins/builtins-typedarray.cc
|
| index 030289ca85db2044dc768bfad055bdb2989192d7..9c6cedb01224a28542d24d1606b835a005609ed4 100644
|
| --- a/src/builtins/builtins-typedarray.cc
|
| +++ b/src/builtins/builtins-typedarray.cc
|
| @@ -17,7 +17,8 @@ namespace internal {
|
| // ES6 section 22.2.3.1 get %TypedArray%.prototype.buffer
|
| BUILTIN(TypedArrayPrototypeBuffer) {
|
| HandleScope scope(isolate);
|
| - CHECK_RECEIVER(JSTypedArray, typed_array, "get TypedArray.prototype.buffer");
|
| + CHECK_RECEIVER(JSTypedArray, typed_array,
|
| + "get %TypedArray%.prototype.buffer");
|
| return *typed_array->GetBuffer();
|
| }
|
|
|
| @@ -51,8 +52,6 @@ BUILTIN(TypedArrayPrototypeCopyWithin) {
|
| ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| isolate, array, JSTypedArray::Validate(isolate, args.receiver(), method));
|
|
|
| - if (V8_UNLIKELY(array->WasNeutered())) return *array;
|
| -
|
| int64_t len = array->length_value();
|
| int64_t to = 0;
|
| int64_t from = 0;
|
| @@ -116,8 +115,6 @@ BUILTIN(TypedArrayPrototypeFill) {
|
| ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| isolate, array, JSTypedArray::Validate(isolate, args.receiver(), method));
|
|
|
| - if (V8_UNLIKELY(array->WasNeutered())) return *array;
|
| -
|
| int64_t len = array->length_value();
|
| int64_t start = 0;
|
| int64_t end = len;
|
| @@ -263,8 +260,6 @@ BUILTIN(TypedArrayPrototypeReverse) {
|
| ASSIGN_RETURN_FAILURE_ON_EXCEPTION(
|
| isolate, array, JSTypedArray::Validate(isolate, args.receiver(), method));
|
|
|
| - if (V8_UNLIKELY(array->WasNeutered())) return *array;
|
| -
|
| ElementsAccessor* elements = array->GetElementsAccessor();
|
| elements->Reverse(*array);
|
| return *array;
|
|
|