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); |
} |