Index: sdk/lib/_internal/pub/lib/src/dart.dart |
diff --git a/sdk/lib/_internal/pub/lib/src/dart.dart b/sdk/lib/_internal/pub/lib/src/dart.dart |
index 7e1fe28b23b20bff770e2a8d7751b6e766294471..7c5e0fa913142f9c33fa6bd320010b9f8fd539bd 100644 |
--- a/sdk/lib/_internal/pub/lib/src/dart.dart |
+++ b/sdk/lib/_internal/pub/lib/src/dart.dart |
@@ -107,7 +107,7 @@ Future runInIsolate(String code, message) { |
'uri': path.toUri(dartPath).toString(), |
'message': message |
}).then((_) => port.first).then((response) { |
- if (response['type'] == 'success') return; |
+ if (response['type'] == 'success') return null; |
assert(response['type'] == 'error'); |
return new Future.error( |
new CrossIsolateException.deserialize(response['error'])); |