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

Unified Diff: sky/sdk/lib/framework/fn.dart

Issue 1149533002: [Effen] add an assert that you don't try to re-add a defunct node (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 7 months 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: sky/sdk/lib/framework/fn.dart
diff --git a/sky/sdk/lib/framework/fn.dart b/sky/sdk/lib/framework/fn.dart
index cf9f871d6997acf98d907d40bde7c679791d4237..f181102004c13045ed7fdef4ec78fc3ef3a26d16 100644
--- a/sky/sdk/lib/framework/fn.dart
+++ b/sky/sdk/lib/framework/fn.dart
@@ -109,6 +109,7 @@ abstract class UINode {
return oldNode;
}
+ assert(!node._defunct);
node._parent = this;
if (oldNode == null) {
« 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