X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/8a23fb2e56720c164909c9e1dc9e3db9a1b377e5..b63701b2f3caa4d3cd69c352573f8dd36c3767fe:/Execute.cpp diff --git a/Execute.cpp b/Execute.cpp index 00e73df..781b795 100644 --- a/Execute.cpp +++ b/Execute.cpp @@ -1469,12 +1469,7 @@ extern "C" void CYSetupContext(JSGlobalContextRef context) { CYSetProperty(context, cycript, CYJSString("Functor"), Functor); CYSetProperty(context, cycript, CYJSString("Pointer"), JSObjectMakeConstructor(context, Pointer_, &Pointer_new)); - - JSObjectRef Type(JSObjectMakeConstructor(context, Type_privateData::Class_, &Type_new)); - CYSetProperty(context, cycript, CYJSString("Type"), Type); - - JSObjectRef Type_prototype(CYCastJSObject(context, CYGetProperty(context, Type, prototype_s))); - CYSetProperty(context, cy, CYJSString("Type_prototype"), Type_prototype); + CYSetProperty(context, cycript, CYJSString("Type"), JSObjectMakeConstructor(context, Type_privateData::Class_, &Type_new)); JSObjectRef all(JSObjectMake(context, All_, NULL)); CYSetProperty(context, cycript, CYJSString("all"), all);