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

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

Issue 972063003: Make sure to bind a method to its receiver if it is stored in a temporary. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address review Created 5 years, 9 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/js_ast/lib/src/nodes.dart ('k') | tests/language/async_this_bound_test.dart » ('j') | 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 ab94a563c2652a9f667a3fc309bc6b014985db4f..c301f6a81f4f31c6e2a7a5a96d1567d0633eb0be 100644
--- a/tests/compiler/dart2js/async_await_js_transform_test.dart
+++ b/tests/compiler/dart2js/async_await_js_transform_test.dart
@@ -82,7 +82,7 @@ function(a) {
return 4;
}""", """
function(b) {
- var __goto = 0, __completer = new Completer(), __returnValue, __handler = 2, __currentError, __next, __helper;
+ var __goto = 0, __completer = new Completer(), __returnValue, __handler = 2, __currentError, __next = [], __helper;
function __body(__errorCode, __result) {
if (__errorCode === 1) {
__currentError = __result;
@@ -118,7 +118,7 @@ function(b) {
case 13:
// returning from await.
__helper = __result;
- __next = [12];
+ __next.push(12);
// goto finally
__goto = 11;
break;
@@ -149,7 +149,7 @@ function(b) {
// after while
case 6:
// break __outer
- __next = [5];
+ __next.push(5);
// goto finally
__goto = 4;
break;
@@ -708,7 +708,7 @@ function(c, i) async {
}
""", """
function(c, i) {
- var __goto = 0, __completer = new Completer(), __handler = 1, __currentError, __next, x, y, __error, __error1;
+ var __goto = 0, __completer = new Completer(), __handler = 1, __currentError, __next = [], x, y, __error, __error1;
function __body(__errorCode, __result) {
if (__errorCode === 1) {
__currentError = __result;
@@ -763,7 +763,7 @@ function(c, i) {
case 15:
// join
x = __result;
- __next = [13];
+ __next.push(13);
// goto finally
__goto = 12;
break;
@@ -772,7 +772,7 @@ function(c, i) {
__handler = 10;
__error1 = __currentError;
y.x = foo(__error1);
- __next = [13];
+ __next.push(13);
// goto finally
__goto = 12;
break;
« no previous file with comments | « pkg/js_ast/lib/src/nodes.dart ('k') | tests/language/async_this_bound_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698