Skip to content

Instantly share code, notes, and snippets.

@toddfreese
Created January 18, 2012 21:32
Show Gist options
  • Select an option

  • Save toddfreese/1635834 to your computer and use it in GitHub Desktop.

Select an option

Save toddfreese/1635834 to your computer and use it in GitHub Desktop.
}
ivar_getTypeEncoding.displayName = "ivar_getTypeEncoding";
objj_msgSend = function( aReceiver, aSelector)
{
if (aReceiver == nil)
return nil;
var isa = aReceiver.isa;
if (!((((isa.info & (CLS_META))) ? isa : isa.isa).info & (CLS_INITIALIZED))) _class_initialize(isa); var method = isa.method_dtable[aSelector]; var implementation = method ? method.method_imp : _objj_forward;;
switch(arguments.length)
{
case 2: return implementation(aReceiver, aSelector);
case 3: return implementation(aReceiver, aSelector, arguments[2]);
case 4: return implementation(aReceiver, aSelector, arguments[2], arguments[3]);
}
return implementation.apply(aReceiver, arguments);
}
Getting invalid arg on the "case 3" line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment