Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Unified Diff: src/debug-debugger.js

Issue 6062002: Merge 6006:6095 from bleeding_edge to experimental/gc branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/debug.cc ('k') | src/deoptimizer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug-debugger.js
===================================================================
--- src/debug-debugger.js (revision 6095)
+++ src/debug-debugger.js (working copy)
@@ -1858,15 +1858,18 @@
var additional_context_object;
if (additional_context) {
additional_context_object = {};
- for (var key in additional_context) {
- var context_value_handle = additional_context[key];
- var context_value_mirror = LookupMirror(context_value_handle);
+ for (var i = 0; i < additional_context.length; i++) {
+ var mapping = additional_context[i];
+ if (!IS_STRING(mapping.name) || !IS_NUMBER(mapping.handle)) {
+ 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 '" + key + "' #" + context_value_handle +
- "# not found");
+ return response.failed("Context object '" + mapping.name +
+ "' #" + mapping.handle + "# not found");
}
- additional_context_object[key] = context_value_mirror.value();
+ additional_context_object[mapping.name] = context_value_mirror.value();
}
}
Property changes on: src/debug-debugger.js
___________________________________________________________________
Modified: svn:mergeinfo
Merged /branches/bleeding_edge/src/debug-debugger.js:r6007-6095
« no previous file with comments | « src/debug.cc ('k') | src/deoptimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698