Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index a2780f9d27ec225c753fba1afe6865bdc8e7be17..fd70187a2cbd784fe9755e6bebd8e59be0993de4 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6927,10 +6927,9 @@ Local<ArrayBuffer> v8::ArrayBufferView::Buffer() { |
size_t v8::ArrayBufferView::CopyContents(void* dest, size_t byte_length) { |
i::Handle<i::JSArrayBufferView> self = Utils::OpenHandle(this); |
- i::Isolate* isolate = self->GetIsolate(); |
- size_t byte_offset = i::NumberToSize(isolate, self->byte_offset()); |
+ size_t byte_offset = i::NumberToSize(self->byte_offset()); |
size_t bytes_to_copy = |
- i::Min(byte_length, i::NumberToSize(isolate, self->byte_length())); |
+ i::Min(byte_length, i::NumberToSize(self->byte_length())); |
if (bytes_to_copy) { |
i::DisallowHeapAllocation no_gc; |
i::Handle<i::JSArrayBuffer> buffer(i::JSArrayBuffer::cast(self->buffer())); |