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

Unified Diff: sdk/lib/dart_client.platform

Issue 2675023002: Temporarily allow to import dart:io in client apps. (Closed)
Patch Set: cl comments Created 3 years, 10 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/dart_client.platform
diff --git a/sdk/lib/dart_client.platform b/sdk/lib/dart_client.platform
index 38442ef971ea55d372c1916bc9c53bc0bf16ff8a..16c91caf17a636e008fd0dee7fb48e6c763cbae8 100644
--- a/sdk/lib/dart_client.platform
+++ b/sdk/lib/dart_client.platform
@@ -5,7 +5,11 @@
# The platform for running dart on the web with dart2js.
#
# Includes dart:html and associated libraries.
-# Does not include dart:io.
+#
+# This configuration used to exclude dart:io, but we made it OK to import it.
+# This is allowed as a stopgap measure until config-specific imports are
+# supported in the language. The returned library is an implementation of
+# dart:io that throws at runtime.
[dart-spec]
spec: 3rd edition.
@@ -23,7 +27,7 @@ developer: developer/developer.dart
html: html/dart2js/html_dart2js.dart
html_common: html/html_common/html_common_dart2js.dart
indexed_db: indexed_db/dart2js/indexed_db_dart2js.dart
-io: unsupported:
+io: unsupported:io/io.dart
isolate: isolate/isolate.dart
js: js/dart2js/js_dart2js.dart
js_util: js_util/dart2js/js_util_dart2js.dart
« no previous file with comments | « pkg/compiler/lib/src/resolved_uri_translator.dart ('k') | tests/compiler/dart2js_extra/dart2js_extra.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698