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

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

Issue 858573002: Implement await and async for the js-ast. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address review comments Created 5 years, 11 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/js_parser_statements_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/js_parser_test.dart
diff --git a/tests/compiler/dart2js/js_parser_test.dart b/tests/compiler/dart2js/js_parser_test.dart
index e3768a373652dc1d702ae0d748af0b642bfea87e..4022724c3b2ba12805495a0e6c3ca93721f8b038 100644
--- a/tests/compiler/dart2js/js_parser_test.dart
+++ b/tests/compiler/dart2js/js_parser_test.dart
@@ -137,6 +137,12 @@ void main() {
testExpression('a * b instanceof c * d'),
testError('x typeof y', 'Unparsed junk'),
testExpression('x &= ~mask'),
+ // Await is parsed as an unary prefix operator.
+ testExpression('var foo = await 0'),
+ testExpression('await x++'),
+ testExpression('void (await (x++))', 'void await x++'),
+ testExpression('void (await x)++'),
+ testExpression('++(await x)++'),
// Adjacent tokens.
testExpression('foo[x[bar]]'),
testExpression('foo[[bar]]'),
« no previous file with comments | « tests/compiler/dart2js/js_parser_statements_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698