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

Unified Diff: sdk/lib/_internal/pub_generated/lib/src/dart.dart

Issue 810033009: Regenerate pub using the latest version of async-await. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: sdk/lib/_internal/pub_generated/lib/src/dart.dart
diff --git a/sdk/lib/_internal/pub_generated/lib/src/dart.dart b/sdk/lib/_internal/pub_generated/lib/src/dart.dart
index 8a66472a2820f269f512a0b0012d0c87f5fda02b..2f83268174f3c5a4f3c23f670120865fd3a42783 100644
--- a/sdk/lib/_internal/pub_generated/lib/src/dart.dart
+++ b/sdk/lib/_internal/pub_generated/lib/src/dart.dart
@@ -151,7 +151,7 @@ Future runInIsolate(String code, message, {packageRoot, String snapshot}) {
scheduleMicrotask(() {
try {
join0() {
- withTempDir(((dir) {
+ new Future.value(withTempDir(((dir) {
final completer0 = new Completer();
scheduleMicrotask(() {
try {
@@ -159,15 +159,15 @@ Future runInIsolate(String code, message, {packageRoot, String snapshot}) {
writeTextFile(dartPath, code, dontLogContents: true);
var port = new ReceivePort();
join0(x0) {
- Isolate.spawn(_isolateBuffer, {
+ new Future.value(Isolate.spawn(_isolateBuffer, {
'replyTo': port.sendPort,
'uri': path.toUri(dartPath).toString(),
'packageRoot': x0,
'message': message
- }).then((x1) {
+ })).then((x1) {
try {
x1;
- port.first.then((x2) {
+ new Future.value(port.first).then((x2) {
try {
var response = x2;
join1() {
@@ -177,9 +177,8 @@ Future runInIsolate(String code, message, {packageRoot, String snapshot}) {
join3() {
snapshotArgs.addAll(
['--snapshot=${snapshot}', dartPath]);
- runProcess(
- Platform.executable,
- snapshotArgs).then((x3) {
+ new Future.value(
+ runProcess(Platform.executable, snapshotArgs)).then((x3) {
try {
var result = x3;
join4() {
@@ -237,7 +236,7 @@ Future runInIsolate(String code, message, {packageRoot, String snapshot}) {
}
});
return completer0.future;
- })).then((x0) {
+ }))).then((x0) {
try {
x0;
completer0.complete();
@@ -266,11 +265,12 @@ Future runInIsolate(String code, message, {packageRoot, String snapshot}) {
}
}
try {
- Isolate.spawnUri(
- path.toUri(snapshot),
- [],
- message,
- packageRoot: packageRoot).then((x1) {
+ new Future.value(
+ Isolate.spawnUri(
+ path.toUri(snapshot),
+ [],
+ message,
+ packageRoot: packageRoot)).then((x1) {
try {
x1;
completer0.complete(null);
« no previous file with comments | « sdk/lib/_internal/pub_generated/lib/src/command/upgrade.dart ('k') | sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698