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

Unified Diff: lib/src/file_system/console.dart

Issue 55143003: webui fixes for 0.8.9 (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 2 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 | « lib/src/dart_parser.dart ('k') | lib/src/info.dart » ('j') | pubspec.yaml » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/file_system/console.dart
diff --git a/lib/src/file_system/console.dart b/lib/src/file_system/console.dart
index 84827a91d0e4bc93f2c463fb5562f034247ec26e..c8a9d616eb06a806e1c5b335d2192bf9cb5a0389 100644
--- a/lib/src/file_system/console.dart
+++ b/lib/src/file_system/console.dart
@@ -5,8 +5,8 @@
library console;
import 'dart:async';
+import 'dart:convert';
import 'dart:io';
-import 'dart:utf';
import 'package:web_ui/src/file_system.dart';
/** File system implementation for console VM (i.e. no browser). */
@@ -42,6 +42,6 @@ class ConsoleFileSystem implements FileSystem {
// TODO(jmesserly): do we support any encoding other than UTF-8 for Dart?
Future<String> readText(String path) {
- return readTextOrBytes(path).then(decodeUtf8);
+ return readTextOrBytes(path).then(UTF8.decode);
}
}
« no previous file with comments | « lib/src/dart_parser.dart ('k') | lib/src/info.dart » ('j') | pubspec.yaml » ('J')

Powered by Google App Engine
This is Rietveld 408576698