Index: src/api.cc |
diff --git a/src/api.cc b/src/api.cc |
index 6ecdb4d4a207a2bcc6308d99773d363252456073..73617647c093e0e55e321f4a9a31b7b83d1b75ba 100644 |
--- a/src/api.cc |
+++ b/src/api.cc |
@@ -6635,7 +6635,7 @@ size_t v8::ArrayBufferView::ByteLength() { |
size_t v8::TypedArray::Length() { |
i::Handle<i::JSTypedArray> obj = Utils::OpenHandle(this); |
- return static_cast<size_t>(obj->length()->Number()); |
+ return static_cast<size_t>(obj->length_value()); |
} |