OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "bin/dartutils.h" | 5 #include "bin/dartutils.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
| 8 #include "include/dart_tools_api.h" |
8 #include "include/dart_native_api.h" | 9 #include "include/dart_native_api.h" |
9 | 10 |
10 #include "platform/assert.h" | 11 #include "platform/assert.h" |
11 #include "platform/globals.h" | 12 #include "platform/globals.h" |
12 | 13 |
13 #include "bin/crypto.h" | 14 #include "bin/crypto.h" |
14 #include "bin/directory.h" | 15 #include "bin/directory.h" |
15 #include "bin/extensions.h" | 16 #include "bin/extensions.h" |
16 #include "bin/file.h" | 17 #include "bin/file.h" |
17 #include "bin/io_buffer.h" | 18 #include "bin/io_buffer.h" |
(...skipping 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1213 new CObjectString(CObject::NewString(os_error->message())); | 1214 new CObjectString(CObject::NewString(os_error->message())); |
1214 CObjectArray* result = new CObjectArray(CObject::NewArray(3)); | 1215 CObjectArray* result = new CObjectArray(CObject::NewArray(3)); |
1215 result->SetAt(0, new CObjectInt32(CObject::NewInt32(kOSError))); | 1216 result->SetAt(0, new CObjectInt32(CObject::NewInt32(kOSError))); |
1216 result->SetAt(1, new CObjectInt32(CObject::NewInt32(os_error->code()))); | 1217 result->SetAt(1, new CObjectInt32(CObject::NewInt32(os_error->code()))); |
1217 result->SetAt(2, error_message); | 1218 result->SetAt(2, error_message); |
1218 return result; | 1219 return result; |
1219 } | 1220 } |
1220 | 1221 |
1221 } // namespace bin | 1222 } // namespace bin |
1222 } // namespace dart | 1223 } // namespace dart |
OLD | NEW |