| Index: lib/src/util/dart.dart
|
| diff --git a/lib/src/util/dart.dart b/lib/src/util/dart.dart
|
| index 378c0350b97f329ce0ff7b23a8086b1b17350233..c62bacbfd2f188dee6d2196fe71d6082bcccf1ae 100644
|
| --- a/lib/src/util/dart.dart
|
| +++ b/lib/src/util/dart.dart
|
| @@ -28,7 +28,7 @@ import 'remote_exception.dart';
|
| /// [String] or a [Uri].
|
| Future<Isolate> runInIsolate(String code, message, {packageRoot}) {
|
| // TODO(nweiz): load code from a local server rather than from a file.
|
| - var dir = Directory.systemTemp.createTempSync().path;
|
| + var dir = createTempDir();
|
| var dartPath = p.join(dir, 'runInIsolate.dart');
|
| new File(dartPath).writeAsStringSync(code);
|
| var port = new ReceivePort();
|
|
|