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

Unified Diff: runtime/vm/object.cc

Issue 1504313003: Fix mismatched parenthesis error message (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Add fixes from previous CL review feedback Created 5 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 | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 6863a85cd1f60df78ce0d5e59239e25a748bc799..02b966dbf17c481dd17a63e3e022fc9b4babeed5 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -9370,9 +9370,7 @@ void Library::RemovePatchClass(const Class& cls) const {
// Library::LoadedScripts() can find it without having to iterate
// over the members of each class.
ASSERT(i < num_classes); // We must have found a class.
- Class& pc = Class::Handle();
- pc ^= patch_classes.At(i);
- const Script& patch_script = Script::Handle(pc.script());
+ const Script& patch_script = Script::Handle(cls.script());
patch_classes.SetAt(i, patch_script);
}
@@ -9816,7 +9814,7 @@ RawArray* Library::LoadedScripts() const {
owner_script = Class::Cast(entry).script();
} else {
ASSERT(entry.IsScript());
- owner_script ^= Script::Cast(entry).raw();
+ owner_script = Script::Cast(entry).raw();
}
AddScriptIfUnique(scripts, owner_script);
}
« no previous file with comments | « no previous file | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698