Index: src/builtins/builtins-dataview.cc |
diff --git a/src/builtins/builtins-dataview.cc b/src/builtins/builtins-dataview.cc |
index 45a5fd91a82507a6194b3ffc6215b88506b00387..c860250eed482a2c23063f7a93c06bb92fb7eba4 100644 |
--- a/src/builtins/builtins-dataview.cc |
+++ b/src/builtins/builtins-dataview.cc |
@@ -42,8 +42,7 @@ BUILTIN(DataViewConstructor_ConstructStub) { |
Handle<Object> offset; |
ASSIGN_RETURN_FAILURE_ON_EXCEPTION( |
isolate, offset, |
- Object::ToIndex(isolate, byte_offset, |
- MessageTemplate::kInvalidDataViewOffset)); |
+ Object::ToIndex(isolate, byte_offset, MessageTemplate::kInvalidOffset)); |
// 5. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. |
// We currently violate the specification at this point. |
@@ -55,8 +54,7 @@ BUILTIN(DataViewConstructor_ConstructStub) { |
// 7. If offset > bufferByteLength, throw a RangeError exception |
if (offset->Number() > buffer_byte_length) { |
THROW_NEW_ERROR_RETURN_FAILURE( |
- isolate, |
- NewRangeError(MessageTemplate::kInvalidDataViewOffset, offset)); |
+ isolate, NewRangeError(MessageTemplate::kInvalidOffset, offset)); |
} |
Handle<Object> view_byte_length; |