Commit 0b5359bf authored by peter.rybin@gmail.com's avatar peter.rybin@gmail.com

Allow all value types in evaluate additional context

Review URL: https://codereview.chromium.org/11448030

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13187 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 8bf58784
......@@ -2143,16 +2143,14 @@ DebugCommandProcessor.prototype.evaluateRequest_ = function(request, response) {
additional_context_object = {};
for (var i = 0; i < additional_context.length; i++) {
var mapping = additional_context[i];
if (!IS_STRING(mapping.name) || !IS_NUMBER(mapping.handle)) {
if (!IS_STRING(mapping.name)) {
return response.failed("Context element #" + i +
" must contain name:string and handle:number");
}
var context_value_mirror = LookupMirror(mapping.handle);
if (!context_value_mirror) {
return response.failed("Context object '" + mapping.name +
"' #" + mapping.handle + "# not found");
" doesn't contain name:string property");
}
additional_context_object[mapping.name] = context_value_mirror.value();
var raw_value = DebugCommandProcessor.resolveValue_(mapping);
additional_context_object[mapping.name] = raw_value;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment