diff options
Diffstat (limited to 'core/libdeno/exceptions.cc')
-rw-r--r-- | core/libdeno/exceptions.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/libdeno/exceptions.cc b/core/libdeno/exceptions.cc index 85f0ca340..8f5779acd 100644 --- a/core/libdeno/exceptions.cc +++ b/core/libdeno/exceptions.cc @@ -214,4 +214,9 @@ void HandleExceptionMessage(v8::Local<v8::Context> context, CHECK_NOT_NULL(d); d->last_exception_ = json_str; } + +void ThrowInvalidArgument(v8::Isolate* isolate) { + isolate->ThrowException(v8::Exception::TypeError(v8_str("Invalid Argument"))); +} + } // namespace deno |