diff options
author | Ben Murdoch <benm@google.com> | 2010-06-15 19:36:43 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-06-16 14:52:28 +0100 |
commit | 545e470e52f0ac6a3a072bf559c796b42c6066b6 (patch) | |
tree | c0c14763654d84d37577dde512c3d3b4699a9e86 /WebCore/bridge/c | |
parent | 719298a66237d38ea5c05f1547123ad8aacbc237 (diff) | |
download | external_webkit-545e470e52f0ac6a3a072bf559c796b42c6066b6.zip external_webkit-545e470e52f0ac6a3a072bf559c796b42c6066b6.tar.gz external_webkit-545e470e52f0ac6a3a072bf559c796b42c6066b6.tar.bz2 |
Merge webkit.org at r61121: Initial merge by git.
Change-Id: Icd6db395c62285be384d137164d95d7466c98760
Diffstat (limited to 'WebCore/bridge/c')
-rw-r--r-- | WebCore/bridge/c/c_instance.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/WebCore/bridge/c/c_instance.cpp b/WebCore/bridge/c/c_instance.cpp index cbcc7b8..2db009e 100644 --- a/WebCore/bridge/c/c_instance.cpp +++ b/WebCore/bridge/c/c_instance.cpp @@ -73,7 +73,7 @@ void CInstance::moveGlobalExceptionToExecState(ExecState* exec) { JSLock lock(SilenceAssertionsOnly); - throwError(exec, GeneralError, globalExceptionString()); + throwError(exec, createError(exec, globalExceptionString())); } globalExceptionString() = UString(); @@ -131,7 +131,7 @@ JSValue CInstance::getMethod(ExecState* exec, const Identifier& propertyName) JSValue CInstance::invokeMethod(ExecState* exec, RuntimeMethod* runtimeMethod) { if (!asObject(runtimeMethod)->inherits(&CRuntimeMethod::s_info)) - return throwError(exec, TypeError, "Attempt to invoke non-plug-in method on plug-in object."); + return throwError(exec, createTypeError(exec, "Attempt to invoke non-plug-in method on plug-in object.")); const MethodList& methodList = *runtimeMethod->methods(); @@ -165,7 +165,7 @@ JSValue CInstance::invokeMethod(ExecState* exec, RuntimeMethod* runtimeMethod) } if (!retval) - throwError(exec, GeneralError, "Error calling method on NPObject!"); + throwError(exec, createError(exec, "Error calling method on NPObject!")); for (i = 0; i < count; i++) _NPN_ReleaseVariantValue(&cArgs[i]); @@ -200,7 +200,7 @@ JSValue CInstance::invokeDefaultMethod(ExecState* exec) } if (!retval) - throwError(exec, GeneralError, "Error calling method on NPObject!"); + throwError(exec, createError(exec, "Error calling method on NPObject!")); for (i = 0; i < count; i++) _NPN_ReleaseVariantValue(&cArgs[i]); @@ -239,7 +239,7 @@ JSValue CInstance::invokeConstruct(ExecState* exec, const ArgList& args) } if (!retval) - throwError(exec, GeneralError, "Error calling method on NPObject!"); + throwError(exec, createError(exec, "Error calling method on NPObject!")); for (i = 0; i < count; i++) _NPN_ReleaseVariantValue(&cArgs[i]); |