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

Unified Diff: tools/ddbg.dart

Issue 107243005: Reorder one line to prevent possible race. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ddbg.dart
===================================================================
--- tools/ddbg.dart (revision 30953)
+++ tools/ddbg.dart (working copy)
@@ -966,6 +966,7 @@
if (script != null) {
return new Future.value(script);
}
+ script = new TargetScript();
// Ask the vm for the source and line number table.
var sourceCmd = {
@@ -997,7 +998,6 @@
script.tokenToLine = parseLineNumberTable(result['lines']);
});
- script = new TargetScript();
return Future.wait([sourceResponse, lineNumberResponse]).then((_) {
// When both commands complete, cache the result.
isolate.scripts[url] = script;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698