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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 133313004: pkg/unittest: Run tests in zones (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nit Created 6 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 | « pkg/unittest/test/unittest_protect_async_test.dart ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index 4227a8363f47d21f7eba93d6d2b779871cb754ed..43fc26219288f792ede669838c148b2573fced00 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -35661,14 +35661,16 @@ class Platform {
// BSD-style license that can be found in the LICENSE file.
-_wrapZone(callback) {
+_wrapZone(callback(arg)) {
// For performance reasons avoid wrapping if we are in the root zone.
if (Zone.current == Zone.ROOT) return callback;
+ if (callback == null) return null;
return Zone.current.bindUnaryCallback(callback, runGuarded: true);
}
-_wrapBinaryZone(callback) {
+_wrapBinaryZone(callback(arg1, arg2)) {
if (Zone.current == Zone.ROOT) return callback;
+ if (callback == null) return null;
return Zone.current.bindBinaryCallback(callback, runGuarded: true);
}
« no previous file with comments | « pkg/unittest/test/unittest_protect_async_test.dart ('k') | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698