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

Unified Diff: runtime/bin/file_unsupported.cc

Issue 1892623002: Fixes leak of native File objects. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove unused GetFD 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
Index: runtime/bin/file_unsupported.cc
diff --git a/runtime/bin/file_unsupported.cc b/runtime/bin/file_unsupported.cc
index 2655f778c2bb1183c2cae26d02543a1dfa922493..55a88d0a918feccbfeba5207396afecb7a17ad3a 100644
--- a/runtime/bin/file_unsupported.cc
+++ b/runtime/bin/file_unsupported.cc
@@ -11,25 +11,32 @@
namespace dart {
namespace bin {
-void FUNCTION_NAME(File_Open)(Dart_NativeArguments args) {
+
+void FUNCTION_NAME(File_GetPointer)(Dart_NativeArguments args) {
Dart_ThrowException(DartUtils::NewInternalError(
"File is not supported on this platform"));
}
-void FUNCTION_NAME(File_Exists)(Dart_NativeArguments args) {
+void FUNCTION_NAME(File_SetPointer)(Dart_NativeArguments args) {
Dart_ThrowException(DartUtils::NewInternalError(
"File is not supported on this platform"));
}
-void FUNCTION_NAME(File_Close)(Dart_NativeArguments args) {
+void FUNCTION_NAME(File_Open)(Dart_NativeArguments args) {
+ Dart_ThrowException(DartUtils::NewInternalError(
+ "File is not supported on this platform"));
+}
+
+
+void FUNCTION_NAME(File_Exists)(Dart_NativeArguments args) {
Dart_ThrowException(DartUtils::NewInternalError(
"File is not supported on this platform"));
}
-void FUNCTION_NAME(File_GetFD)(Dart_NativeArguments args) {
+void FUNCTION_NAME(File_Close)(Dart_NativeArguments args) {
Dart_ThrowException(DartUtils::NewInternalError(
"File is not supported on this platform"));
}

Powered by Google App Engine
This is Rietveld 408576698