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

Unified Diff: tool/input_sdk/patch/async_patch.dart

Issue 1953153002: Update dart:async to match the Dart repo. (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Remove unneeded calls. Created 4 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 | « tool/input_sdk/lib/async/zone.dart ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tool/input_sdk/patch/async_patch.dart
diff --git a/tool/input_sdk/patch/async_patch.dart b/tool/input_sdk/patch/async_patch.dart
index eefc637dcc64de2a47110375ef761a2bcd2e7bfd..dfc883a382de4498aad513b79d8869732722b04e 100644
--- a/tool/input_sdk/patch/async_patch.dart
+++ b/tool/input_sdk/patch/async_patch.dart
@@ -20,14 +20,16 @@ import 'dart:_foreign_helper' show JS;
class _AsyncRun {
@patch
static void _scheduleImmediate(void callback()) {
- scheduleImmediateClosure(callback);
+ _scheduleImmediateClosure(callback);
}
// Lazily initialized.
- static final Function scheduleImmediateClosure =
+ static final Function _scheduleImmediateClosure =
_initializeScheduleImmediate();
static Function _initializeScheduleImmediate() {
+ // TODO(rnystrom): Not needed by dev_compiler.
+ // requiresPreamble();
if (JS('', 'self.scheduleImmediate') != null) {
return _scheduleImmediateJsOverride;
}
@@ -116,4 +118,10 @@ class Timer {
}
}
-bool get _hasDocument => JS('String', 'typeof document') == 'object';
+@patch
+void _rethrow(Object error, StackTrace stackTrace) {
+ // TODO(rnystrom): Not needed by dev_compiler.
+ // error = wrapException(error);
+ JS("void", "#.stack = #", error, stackTrace.toString());
+ JS("void", "throw #", error);
+}
« no previous file with comments | « tool/input_sdk/lib/async/zone.dart ('k') | tool/sdk_expected_errors.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698