]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - runtime/Error.cpp
JavaScriptCore-584.tar.gz
[apple/javascriptcore.git] / runtime / Error.cpp
index db1d8ccb0b60a26c44da665cf13efa2bcdc0f322..ddd4bc4f5e1398ab60626d0ee06623b3cecdbc4c 100644 (file)
@@ -97,6 +97,12 @@ JSObject* Error::create(ExecState* exec, ErrorType type, const char* message)
     return create(exec, type, message, -1, -1, NULL);
 }
 
+JSObject* throwError(ExecState* exec, JSObject* error)
+{
+    exec->setException(error);
+    return error;
+}
+
 JSObject* throwError(ExecState* exec, ErrorType type)
 {
     JSObject* error = Error::create(exec, type, UString(), -1, -1, NULL);