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

Unified Diff: sdk/lib/_internal/js_runtime/lib/io_patch.dart

Issue 1892623002: Fixes leak of native File objects. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address comments Created 4 years, 8 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 | « runtime/bin/main.cc ('k') | sdk/lib/io/file.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e4038448bfb9637448f6f65e8241eb76b598e1bf..51e00786e6f0b38623ae56c4086aae1beedf0b3e 100644
--- a/sdk/lib/_internal/js_runtime/lib/io_patch.dart
+++ b/sdk/lib/_internal/js_runtime/lib/io_patch.dart
@@ -135,58 +135,10 @@ class _File {
}
@patch
-class _RandomAccessFile {
+class _RandomAccessFileOps {
@patch
- static int _close(int id) {
- throw new UnsupportedError("RandomAccessFile._close");
- }
- @patch
- static int _getFD(int id) {
- throw new UnsupportedError("RandomAccessFile._getFD");
- }
- @patch
- static _readByte(int id) {
- throw new UnsupportedError("RandomAccessFile._readByte");
- }
- @patch
- static _read(int id, int bytes) {
- throw new UnsupportedError("RandomAccessFile._read");
- }
- @patch
- static _readInto(int id, List<int> buffer, int start, int end) {
- throw new UnsupportedError("RandomAccessFile._readInto");
- }
- @patch
- static _writeByte(int id, int value) {
- throw new UnsupportedError("RandomAccessFile._writeByte");
- }
- @patch
- static _writeFrom(int id, List<int> buffer, int start, int end) {
- throw new UnsupportedError("RandomAccessFile._writeFrom");
- }
- @patch
- static _position(int id) {
- throw new UnsupportedError("RandomAccessFile._position");
- }
- @patch
- static _setPosition(int id, int position) {
- throw new UnsupportedError("RandomAccessFile._setPosition");
- }
- @patch
- static _truncate(int id, int length) {
- throw new UnsupportedError("RandomAccessFile._truncate");
- }
- @patch
- static _length(int id) {
- throw new UnsupportedError("RandomAccessFile._length");
- }
- @patch
- static _flush(int id) {
- throw new UnsupportedError("RandomAccessFile._flush");
- }
- @patch
- static _lock(int id, int lock, int start, int end) {
- throw new UnsupportedError("RandomAccessFile._lock");
+ factory _RandomAccessFileOps(int pointer) {
+ throw new UnsupportedError("RandomAccessFile");
}
}
« no previous file with comments | « runtime/bin/main.cc ('k') | sdk/lib/io/file.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698