| Index: runtime/bin/dartutils.h
|
| diff --git a/runtime/bin/dartutils.h b/runtime/bin/dartutils.h
|
| index a3058b440b3f3bf4c39ae2c695ccca481647103e..8961204dec893eb536db74fa0d3dc98ad396ab19 100644
|
| --- a/runtime/bin/dartutils.h
|
| +++ b/runtime/bin/dartutils.h
|
| @@ -6,6 +6,7 @@
|
| #define BIN_DARTUTILS_H_
|
|
|
| #include "bin/builtin.h"
|
| +#include "bin/utils.h"
|
| #include "include/dart_api.h"
|
| #include "platform/globals.h"
|
|
|
| @@ -88,6 +89,11 @@ class DartUtils {
|
| static bool PostNull(Dart_Port port_id);
|
| static bool PostInt32(Dart_Port port_id, int32_t value);
|
|
|
| + // Create a new Dart OSError object with the current OS error.
|
| + static Dart_Handle NewDartOSError();
|
| + // Create a new Dart OSError object with the provided OS error.
|
| + static Dart_Handle NewDartOSError(OSError* os_error);
|
| +
|
| static const char* kDartScheme;
|
| static const char* kDartExtensionScheme;
|
| static const char* kBuiltinLibURL;
|
| @@ -155,6 +161,11 @@ class CObject {
|
|
|
| Dart_CObject* AsApiCObject() { return cobject_; }
|
|
|
| + // Create a new CObject array with an illegal arguments error.
|
| + static CObject* IllegalArgumentError();
|
| + // Create a new CObject array with the current OS error.
|
| + static CObject* NewOSError();
|
| +
|
| protected:
|
| CObject() : cobject_(NULL) {}
|
| Dart_CObject* cobject_;
|
|
|