From 35494a52844a5855eb590e83342c91e7fa83b90f Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Sat, 9 Jan 2016 19:19:01 -0800 Subject: [PATCH] Avoid guessing when converting Functor to Pointer. --- Execute.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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} }; -- 2.45.2