Index: sdk/lib/_internal/js_runtime/lib/io_patch.dart |
diff --git a/sdk/lib/_internal/js_runtime/lib/io_patch.dart b/sdk/lib/_internal/js_runtime/lib/io_patch.dart |
index e84bc85011eda1f210d5394cc28950adaa1ed05c..773fa5b074cdb02e36be2fb1291aaa5f52b6a664 100644 |
--- a/sdk/lib/_internal/js_runtime/lib/io_patch.dart |
+++ b/sdk/lib/_internal/js_runtime/lib/io_patch.dart |
@@ -7,48 +7,52 @@ import 'dart:_js_helper' show patch; |
@patch |
class _Directory { |
@patch |
- static _current() { |
+ static _current(_Namespace namespace) { |
throw new UnsupportedError("Directory._current"); |
} |
@patch |
- static _setCurrent(path) { |
+ static _setCurrent(_Namespace namespace, path) { |
throw new UnsupportedError("Directory_SetCurrent"); |
} |
@patch |
- static _createTemp(String path) { |
+ static _createTemp(_Namespace namespace, String path) { |
throw new UnsupportedError("Directory._createTemp"); |
} |
@patch |
- static String _systemTemp() { |
+ static String _systemTemp(_Namespace namespace) { |
throw new UnsupportedError("Directory._systemTemp"); |
} |
@patch |
- static _exists(String path) { |
+ static _exists(_Namespace namespace, String path) { |
throw new UnsupportedError("Directory._exists"); |
} |
@patch |
- static _create(String path) { |
+ static _create(_Namespace namespace, String path) { |
throw new UnsupportedError("Directory._create"); |
} |
@patch |
- static _deleteNative(String path, bool recursive) { |
+ static _deleteNative(_Namespace namespace, String path, bool recursive) { |
throw new UnsupportedError("Directory._deleteNative"); |
} |
@patch |
- static _rename(String path, String newPath) { |
+ static _rename(_Namespace namespace, String path, String newPath) { |
throw new UnsupportedError("Directory._rename"); |
} |
@patch |
- static void _fillWithDirectoryListing(List<FileSystemEntity> list, |
- String path, bool recursive, bool followLinks) { |
+ static void _fillWithDirectoryListing( |
+ _Namespace namespace, |
+ List<FileSystemEntity> list, |
+ String path, |
+ bool recursive, |
+ bool followLinks) { |
throw new UnsupportedError("Directory._fillWithDirectoryListing"); |
} |
} |
@@ -72,7 +76,7 @@ class _EventHandler { |
@patch |
class FileStat { |
@patch |
- static _statSync(String path) { |
+ static _statSync(_Namespace namespace, String path) { |
throw new UnsupportedError("FileStat.stat"); |
} |
} |
@@ -80,17 +84,17 @@ class FileStat { |
@patch |
class FileSystemEntity { |
@patch |
- static _getType(String path, bool followLinks) { |
+ static _getType(_Namespace namespace, String path, bool followLinks) { |
throw new UnsupportedError("FileSystemEntity._getType"); |
} |
@patch |
- static _identical(String path1, String path2) { |
+ static _identical(_Namespace namespace, String path1, String path2) { |
throw new UnsupportedError("FileSystemEntity._identical"); |
} |
@patch |
- static _resolveSymbolicLinks(String path) { |
+ static _resolveSymbolicLinks(_Namespace namespace, String path) { |
throw new UnsupportedError("FileSystemEntity._resolveSymbolicLinks"); |
} |
} |
@@ -98,77 +102,77 @@ class FileSystemEntity { |
@patch |
class _File { |
@patch |
- static _exists(String path) { |
+ static _exists(_Namespace namespace, String path) { |
throw new UnsupportedError("File._exists"); |
} |
@patch |
- static _create(String path) { |
+ static _create(_Namespace namespace, String path) { |
throw new UnsupportedError("File._create"); |
} |
@patch |
- static _createLink(String path, String target) { |
+ static _createLink(_Namespace namespace, String path, String target) { |
throw new UnsupportedError("File._createLink"); |
} |
@patch |
- static _linkTarget(String path) { |
+ static _linkTarget(_Namespace namespace, String path) { |
throw new UnsupportedError("File._linkTarget"); |
} |
@patch |
- static _deleteNative(String path) { |
+ static _deleteNative(_Namespace namespace, String path) { |
throw new UnsupportedError("File._deleteNative"); |
} |
@patch |
- static _deleteLinkNative(String path) { |
+ static _deleteLinkNative(_Namespace namespace, String path) { |
throw new UnsupportedError("File._deleteLinkNative"); |
} |
@patch |
- static _rename(String oldPath, String newPath) { |
+ static _rename(_Namespace namespace, String oldPath, String newPath) { |
throw new UnsupportedError("File._rename"); |
} |
@patch |
- static _renameLink(String oldPath, String newPath) { |
+ static _renameLink(_Namespace namespace, String oldPath, String newPath) { |
throw new UnsupportedError("File._renameLink"); |
} |
@patch |
- static _copy(String oldPath, String newPath) { |
+ static _copy(_Namespace namespace, String oldPath, String newPath) { |
throw new UnsupportedError("File._copy"); |
} |
@patch |
- static _lengthFromPath(String path) { |
+ static _lengthFromPath(_Namespace namespace, String path) { |
throw new UnsupportedError("File._lengthFromPath"); |
} |
@patch |
- static _lastModified(String path) { |
+ static _lastModified(_Namespace namespace, String path) { |
throw new UnsupportedError("File._lastModified"); |
} |
@patch |
- static _lastAccessed(String path) { |
+ static _lastAccessed(_Namespace namespace, String path) { |
throw new UnsupportedError("File._lastAccessed"); |
} |
@patch |
- static _setLastModified(String path, int millis) { |
+ static _setLastModified(_Namespace namespace, String path, int millis) { |
throw new UnsupportedError("File._setLastModified"); |
} |
@patch |
- static _setLastAccessed(String path, int millis) { |
+ static _setLastAccessed(_Namespace namespace, String path, int millis) { |
throw new UnsupportedError("File._setLastAccessed"); |
} |
@patch |
- static _open(String path, int mode) { |
+ static _open(_Namespace namespace, String path, int mode) { |
throw new UnsupportedError("File._open"); |
} |
@@ -178,6 +182,24 @@ class _File { |
} |
} |
+@patch |
+class _Namespace { |
+ @patch |
+ static void _setupNamespace(var namespace) { |
+ throw new UnsupportedError("_Namespace"); |
+ } |
+ |
+ @patch |
+ static _Namespace get _namespace { |
+ throw new UnsupportedError("_Namespace"); |
+ } |
+ |
+ @patch |
+ static int get _namespacePointer { |
+ throw new UnsupportedError("_Namespace"); |
+ } |
+} |
+ |
@patch |
class _RandomAccessFileOps { |
@patch |