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

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

Issue 946353003: Use more js templates in async rewrite. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 5 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/js/rewrite_async.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/async_await_js_transform_test.dart
diff --git a/tests/compiler/dart2js/async_await_js_transform_test.dart b/tests/compiler/dart2js/async_await_js_transform_test.dart
index 72c6c09a3e28f311004d26cf270814dd4bdc7245..e15a4ba1c61bd42d5f971ba36a0bdee5b53fcbda 100644
--- a/tests/compiler/dart2js/async_await_js_transform_test.dart
+++ b/tests/compiler/dart2js/async_await_js_transform_test.dart
@@ -36,7 +36,7 @@ function(a) async {
function(a) {
var __goto = 0, __completer = new Completer(), __handler = 1, __currentError, __self = this;
function __body(__errorCode, __result) {
- if (__errorCode == 1) {
+ if (__errorCode === 1) {
__currentError = __result;
__goto = __handler;
}
@@ -86,7 +86,7 @@ function(a) {
function(b) {
var __goto = 0, __completer = new Completer(), __handler = 2, __currentError, __next, __returnValue, __helper;
function __body(__errorCode, __result) {
- if (__errorCode == 1) {
+ if (__errorCode === 1) {
__currentError = __result;
__goto = __handler;
}
@@ -198,7 +198,7 @@ function(c) async {
function(c) {
var __goto = 0, __completer = new Completer(), __handler = 1, __currentError, a, b, c, d, e, f, __temp1;
function __body(__errorCode, __result) {
- if (__errorCode == 1) {
+ if (__errorCode === 1) {
__currentError = __result;
__goto = __handler;
}
@@ -255,7 +255,7 @@ function(c) {
function(d2) {
var __goto = 0, __completer = new Completer(), __handler = 1, __currentError, a, b, c, d, e, f, g, h, __temp1;
function __body(__errorCode, __result) {
- if (__errorCode == 1) {
+ if (__errorCode === 1) {
__currentError = __result;
__goto = __handler;
}
@@ -392,7 +392,7 @@ function(x, y) async {
function(x, y) {
var __goto = 0, __completer = new Completer(), __handler = 1, __currentError;
function __body(__errorCode, __result) {
- if (__errorCode == 1) {
+ if (__errorCode === 1) {
__currentError = __result;
__goto = __handler;
}
@@ -479,7 +479,7 @@ function(x, y) {
function(f) {
var __goto = 0, __completer = new Completer(), __handler = 1, __currentError, a;
function __body(__errorCode, __result) {
- if (__errorCode == 1) {
+ if (__errorCode === 1) {
__currentError = __result;
__goto = __handler;
}
@@ -544,7 +544,7 @@ function(g) async {
function(g) {
var __goto = 0, __completer = new Completer(), __handler = 2, __currentError, __returnValue, i, __temp1;
function __body(__errorCode, __result) {
- if (__errorCode == 1) {
+ if (__errorCode === 1) {
__currentError = __result;
__goto = __handler;
}
@@ -629,7 +629,7 @@ function(g) {
function(a, h) {
var __goto = 0, __completer = new Completer(), __handler = 1, __currentError, x, __temp1, __temp2;
function __body(__errorCode, __result) {
- if (__errorCode == 1) {
+ if (__errorCode === 1) {
__currentError = __result;
__goto = __handler;
}
@@ -710,7 +710,7 @@ function(c, i) async {
function(c, i) {
var __goto = 0, __completer = new Completer(), __handler = 1, __currentError, x, y, __error1, __error2;
function __body(__errorCode, __result) {
- if (__errorCode == 1) {
+ if (__errorCode === 1) {
__currentError = __result;
__goto = __handler;
}
@@ -820,7 +820,7 @@ function(c, i) {
function(x, y, j) {
var __goto = 0, __completer = new Completer(), __handler = 1, __currentError, __temp1, __temp2, __temp3;
function __body(__errorCode, __result) {
- if (__errorCode == 1) {
+ if (__errorCode === 1) {
__currentError = __result;
__goto = __handler;
}
@@ -903,7 +903,7 @@ function(x, y, k) async {
function(x, y, k) {
var __goto = 0, __completer = new Completer(), __handler = 2, __currentError, __returnValue, __temp1;
function __body(__errorCode, __result) {
- if (__errorCode == 1) {
+ if (__errorCode === 1) {
__currentError = __result;
__goto = __handler;
}
« no previous file with comments | « pkg/compiler/lib/src/js/rewrite_async.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698