From: Jay Freeman (saurik) Date: Sun, 10 Jan 2016 03:19:01 +0000 (-0800) Subject: Avoid guessing when converting Functor to Pointer. X-Git-Tag: v0.9.590~12 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/35494a52844a5855eb590e83342c91e7fa83b90f Avoid guessing when converting Functor to Pointer. --- diff --git a/Execute.cpp b/Execute.cpp index b812075..81bd6ec 100644 --- a/Execute.cpp +++ b/Execute.cpp @@ -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} };