summaryrefslogtreecommitdiffstats
path: root/WebCore/bridge/jni/jsc
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bridge/jni/jsc')
-rw-r--r--WebCore/bridge/jni/jsc/JNIBridgeJSC.cpp4
-rw-r--r--WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/bridge/jni/jsc/JNIBridgeJSC.cpp b/WebCore/bridge/jni/jsc/JNIBridgeJSC.cpp
index 24e2b91..d5dc1cb 100644
--- a/WebCore/bridge/jni/jsc/JNIBridgeJSC.cpp
+++ b/WebCore/bridge/jni/jsc/JNIBridgeJSC.cpp
@@ -88,7 +88,7 @@ jvalue JavaField::dispatchValueFromInstance(ExecState* exec, const JavaInstance*
args[0].l = jinstance;
dispatchJNICall(exec, rootObject->nativeHandle(), fieldJInstance, false, returnType, mid, args, result, 0, exceptionDescription);
if (exceptionDescription)
- throwError(exec, GeneralError, exceptionDescription.toString(exec));
+ throwError(exec, createError(exec, exceptionDescription.toString(exec)));
}
}
}
@@ -175,7 +175,7 @@ void JavaField::dispatchSetValueToInstance(ExecState* exec, const JavaInstance*
args[1] = javaValue;
dispatchJNICall(exec, rootObject->nativeHandle(), fieldJInstance, false, void_type, mid, args, result, 0, exceptionDescription);
if (exceptionDescription)
- throwError(exec, GeneralError, exceptionDescription.toString(exec));
+ throwError(exec, createError(exec, exceptionDescription.toString(exec)));
}
}
}
diff --git a/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp b/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp
index a87f062..84b06de 100644
--- a/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp
+++ b/WebCore/bridge/jni/jsc/JavaInstanceJSC.cpp
@@ -139,7 +139,7 @@ JSValue JavaInstance::getMethod(ExecState* exec, const Identifier& propertyName)
JSValue JavaInstance::invokeMethod(ExecState* exec, RuntimeMethod* runtimeMethod)
{
if (!asObject(runtimeMethod)->inherits(&JavaRuntimeMethod::s_info))
- return throwError(exec, TypeError, "Attempt to invoke non-Java method on Java object.");
+ return throwError(exec, createTypeError(exec, "Attempt to invoke non-Java method on Java object."));
const MethodList& methodList = *runtimeMethod->methods();
@@ -193,7 +193,7 @@ JSValue JavaInstance::invokeMethod(ExecState* exec, RuntimeMethod* runtimeMethod
const char *callingURL = 0; // FIXME, need to propagate calling URL to Java
handled = dispatchJNICall(exec, rootObject->nativeHandle(), obj, jMethod->isStatic(), jMethod->JNIReturnType(), jMethod->methodID(obj), jArgs.data(), result, callingURL, exceptionDescription);
if (exceptionDescription) {
- throwError(exec, GeneralError, exceptionDescription.toString(exec));
+ throwError(exec, createError(exec, exceptionDescription.toString(exec)));
return jsUndefined();
}
}