Index: src/Utils.cpp |
diff --git a/src/Utils.cpp b/src/Utils.cpp |
index 90db2d007b1ea6341160c14e6b8e94070e529674..0f54074b65c4a48fd89e5d8a5497e42f18685d43 100644 |
--- a/src/Utils.cpp |
+++ b/src/Utils.cpp |
@@ -49,6 +49,10 @@ v8::Local<v8::String> Utils::ToV8String(v8::Isolate* isolate, const std::string& |
v8::String::NewStringType::kNormalString, str.length()); |
} |
+void Utils::ThrowException(v8::Isolate* isolate, const std::string& str) |
+{ |
+ isolate->ThrowException(Utils::ToV8String(isolate, str)); |
+} |
#ifdef _WIN32 |
std::wstring Utils::ToUtf16String(const std::string& str) |