| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index 449d8a39ddd8ab061fd571f5c25684b3be4cf4c8..28506dde49a11cd6aa9d6c91ab5ce21e22301f64 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -1212,10 +1212,7 @@ inline static bool DataViewGetValue(
|
| Handle<Object> byte_offset_obj,
|
| bool is_little_endian,
|
| T* result) {
|
| - size_t byte_offset = 0;
|
| - if (!TryNumberToSize(isolate, *byte_offset_obj, &byte_offset)) {
|
| - return false;
|
| - }
|
| + size_t byte_offset = NumberToSize(isolate, *byte_offset_obj);
|
| Handle<JSArrayBuffer> buffer(JSArrayBuffer::cast(data_view->buffer()));
|
|
|
| size_t data_view_byte_offset =
|
| @@ -1256,10 +1253,7 @@ static bool DataViewSetValue(
|
| Handle<Object> byte_offset_obj,
|
| bool is_little_endian,
|
| T data) {
|
| - size_t byte_offset = 0;
|
| - if (!TryNumberToSize(isolate, *byte_offset_obj, &byte_offset)) {
|
| - return false;
|
| - }
|
| + size_t byte_offset = NumberToSize(isolate, *byte_offset_obj);
|
| Handle<JSArrayBuffer> buffer(JSArrayBuffer::cast(data_view->buffer()));
|
|
|
| size_t data_view_byte_offset =
|
|
|