]> git.saurik.com Git - cycript.git/commitdiff
Correct a simple typo in a thrown exception message.
authorJay Freeman (saurik) <saurik@saurik.com>
Sat, 15 Sep 2012 06:14:06 +0000 (23:14 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Sat, 15 Sep 2012 06:15:06 +0000 (23:15 -0700)
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_);