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

Unified Diff: client/html/release/htmlimpl.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 9315026: Cleanup mdn scripts (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review fixes Created 8 years, 10 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:
Download patch
« no previous file with comments | « no previous file | client/html/src/DOMWrapperBase.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/release/htmlimpl.dart
diff --git a/client/html/release/htmlimpl.dart b/client/html/release/htmlimpl.dart
index 1ea897b18e9a815d0ff8d384dce93fe86db5b539..39644f521d890253ce78c2edec903ca85efe1d40 100644
--- a/client/html/release/htmlimpl.dart
+++ b/client/html/release/htmlimpl.dart
@@ -22172,7 +22172,11 @@ class DOMWrapperBase {
DOMWrapperBase._wrap(this._ptr) {
// We should never be creating duplicate wrappers.
- assert(_ptr.dartObjectLocalStorage === null);
+ // TODO(jacobr): this boolean value is evaluated outside of the assert
+ // to work around a mysterious and flaky bug in tip of trunk versions of
+ // chrome.
+ bool hasExistingWrapper = _ptr.dartObjectLocalStorage === null;
+ assert(hasExistingWrapper);
_ptr.dartObjectLocalStorage = this;
}
}
@@ -23137,7 +23141,7 @@ class EventTargetWrappingImplementation extends DOMWrapperBase implements EventT
return _on;
}
}
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
« no previous file with comments | « no previous file | client/html/src/DOMWrapperBase.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698