]> git.saurik.com Git - cycript.git/commitdiff
Avoid guessing when converting Functor to Pointer.
authorJay Freeman (saurik) <saurik@saurik.com>
Sun, 10 Jan 2016 03:19:01 +0000 (19:19 -0800)
committerJay Freeman (saurik) <saurik@saurik.com>
Sun, 10 Jan 2016 03:19:01 +0000 (19:19 -0800)
Execute.cpp

index b8120752299d823abe0f8de5e282cd9cf1164366..81bd6ec35885585941bd86711163ff46db769725 100644 (file)
@@ -1989,9 +1989,10 @@ static JSStaticValue Struct_staticValues[2] = {
     {NULL, NULL, NULL, 0}
 };
 
-static JSStaticFunction Functor_staticFunctions[4] = {
+static JSStaticFunction Functor_staticFunctions[5] = {
     {"$cya", &Functor_callAsFunction_$cya, kJSPropertyAttributeDontEnum | kJSPropertyAttributeDontDelete},
     {"toCYON", &Functor_callAsFunction_toCYON, kJSPropertyAttributeDontEnum | kJSPropertyAttributeDontDelete},
+    {"toPointer", &Functor_callAsFunction_$cya, kJSPropertyAttributeDontEnum | kJSPropertyAttributeDontDelete},
     {"valueOf", &Functor_callAsFunction_valueOf, kJSPropertyAttributeDontEnum | kJSPropertyAttributeDontDelete},
     {NULL, NULL, 0}
 };