Index: src/inspector/V8Debugger.cpp |
diff --git a/src/inspector/V8Debugger.cpp b/src/inspector/V8Debugger.cpp |
index 675623de34e8ac2d0095fcfe0153c77e97010ec3..e56d7eb8e3c689ac7e1c1a2ce9a13ff66a6e8a6e 100644 |
--- a/src/inspector/V8Debugger.cpp |
+++ b/src/inspector/V8Debugger.cpp |
@@ -121,9 +121,7 @@ void V8Debugger::getCompiledScripts( |
.ToLocalChecked()); |
v8::Local<v8::Value> argv[] = {v8::Integer::New(m_isolate, contextGroupId)}; |
v8::Local<v8::Value> value; |
- if (!getScriptsFunction |
- ->Call(context, debuggerScript, V8_INSPECTOR_ARRAY_LENGTH(argv), |
- argv) |
+ if (!getScriptsFunction->Call(context, debuggerScript, arraysize(argv), argv) |
.ToLocal(&value)) |
return; |
DCHECK(value->IsArray()); |
@@ -466,8 +464,7 @@ JavaScriptCallFrames V8Debugger::currentCallFrames(int limit) { |
v8::Local<v8::Value> argv[] = {m_executionState, |
v8::Integer::New(m_isolate, limit)}; |
currentCallFramesV8 = |
- callDebuggerMethod("currentCallFrames", V8_INSPECTOR_ARRAY_LENGTH(argv), |
- argv) |
+ callDebuggerMethod("currentCallFrames", arraysize(argv), argv) |
.ToLocalChecked(); |
} |
DCHECK(!currentCallFramesV8.IsEmpty()); |