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

Unified Diff: tests/compiler/dart2js/mock_libraries.dart

Issue 1281523003: dart2js: Don't zone-register callbacks in async functions for every await. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Use origin instead of declaration. (already has the right type). Created 5 years, 4 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 | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/mock_libraries.dart
diff --git a/tests/compiler/dart2js/mock_libraries.dart b/tests/compiler/dart2js/mock_libraries.dart
index 6db960c45375c7d2f042d6a1583d754555490dd0..b0bcaa16112d13769541ebdb4a3f44942274735b 100644
--- a/tests/compiler/dart2js/mock_libraries.dart
+++ b/tests/compiler/dart2js/mock_libraries.dart
@@ -236,7 +236,6 @@ const Map<String, String> DEFAULT_JS_HELPER_LIBRARY = const <String, String>{
'mainHasTooManyParameters':
'mainHasTooManyParameters() '
'{ throw "main has too many parameters"; }',
- '_wrapJsFunctionForAsync': '_wrapJsFunctionForAsync(f) {}',
};
const Map<String, String> DEFAULT_FOREIGN_HELPER_LIBRARY
@@ -387,6 +386,12 @@ const Map<String, String> DEFAULT_ASYNC_LIBRARY = const <String, String>{
'StreamIterator': 'class StreamIterator<T> {}',
};
+/// These members are only needed when async/await is used.
+const Map<String, String> ASYNC_AWAIT_LIBRARY = const <String, String>{
+ '_wrapJsFunctionForAsync': '_wrapJsFunctionForAsync(f) {}',
+ '_asyncHelper': '_asyncHelper(o, f, c) {}',
+};
+
const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{
'Comment': 'class Comment {}',
'MirrorSystem': 'class MirrorSystem {}',
« no previous file with comments | « tests/compiler/dart2js/mock_compiler.dart ('k') | tests/compiler/dart2js/type_checker_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698