Index: third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js |
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js b/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js |
index 586b9c40088afa8e4d04e40dbb6839f023cd5e3a..df07d56fb9ff9f543e1b2b349cc30c23e0ad89e8 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js |
@@ -70,7 +70,7 @@ SDK.RemoteObject = class { |
static arrayLength(object) { |
if (object.subtype !== 'array' && object.subtype !== 'typedarray') |
return 0; |
- var matches = object.description.match(/\[([0-9]+)\]/); |
+ var matches = object.description.match(/\[([0-9]+)\]/) || object.description.match(/\(([0-9]+)\)/); |
if (!matches) |
return 0; |
return parseInt(matches[1], 10); |