| Index: Source/core/inspector/InjectedScript.cpp
|
| diff --git a/Source/core/inspector/InjectedScript.cpp b/Source/core/inspector/InjectedScript.cpp
|
| index 43422c81e7ef91e51949836cbe5a242952142a5a..c0b56701bb7b59068359216ef52b055343221347 100644
|
| --- a/Source/core/inspector/InjectedScript.cpp
|
| +++ b/Source/core/inspector/InjectedScript.cpp
|
| @@ -142,6 +142,22 @@ void InjectedScript::setVariableValue(ErrorString* errorString, const ScriptValu
|
| // Normal return.
|
| }
|
|
|
| +void InjectedScript::getCallFrameScopes(ErrorString* errorString, const ScriptValue& callFrames, const String& callFrameId, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::Scope> >* result)
|
| +{
|
| + ScriptFunctionCall function(injectedScriptObject(), "getCallFrameScopes");
|
| + function.appendArgument(callFrames);
|
| + function.appendArgument(callFrameId);
|
| + RefPtr<JSONValue> resultValue;
|
| + makeCall(function, &resultValue);
|
| + if (!resultValue || resultValue->type() != JSONValue::TypeArray) {
|
| + if (!resultValue->asString(errorString))
|
| + *errorString = "Internal error";
|
| + return;
|
| + }
|
| + *result = TypeBuilder::Array<TypeBuilder::Debugger::Scope>::runtimeCast(resultValue);
|
| +}
|
| +
|
| +
|
| void InjectedScript::getFunctionDetails(ErrorString* errorString, const String& functionId, RefPtr<FunctionDetails>* result)
|
| {
|
| ScriptFunctionCall function(injectedScriptObject(), "getFunctionDetails");
|
|
|