| 49 | }; |
| 50 | |
| 51 | class ExceptionHandler { |
| 52 | public: |
| 53 | virtual ~ExceptionHandler() {} |
| 54 | virtual void HandleUncaughtException(const v8::TryCatch& try_catch) = 0; |
| 55 | |
| 56 | protected: |
| 57 | // Formats |try_catch| as a nice string. |
| 58 | std::string CreateExceptionString(const v8::TryCatch& try_catch); |
| 59 | }; |
| 60 | |
| 61 | // Enables native bindings for the duration of its lifetime. |
| 62 | class NativesEnabledScope { |
nothing calls this directly
no outgoing calls
no test coverage detected