]> git.saurik.com Git - cycript.git/blobdiff - Execute.cpp
Correct a simple typo in a thrown exception message.
[cycript.git] / Execute.cpp
index 781b795c011606c7b2d5ad90efccbd0f1ad597bc..4f7358a68dd85ec077e7515b07ed2d192f57e326 100644 (file)
@@ -1091,7 +1091,7 @@ static JSValueRef Type_callAsFunction(JSContextRef context, JSObjectRef object,
 
 static JSObjectRef Type_callAsConstructor(JSContextRef context, JSObjectRef object, size_t count, const JSValueRef arguments[], JSValueRef *exception) { CYTry {
     if (count != 0)
-        throw CYJSError(context, "incorrect number of arguments to type cast function");
+        throw CYJSError(context, "incorrect number of arguments to Type allocator");
     Type_privateData *internal(reinterpret_cast<Type_privateData *>(JSObjectGetPrivate(object)));
 
     sig::Type *type(internal->type_);