Created
January 18, 2012 21:32
-
-
Save toddfreese/1635834 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| } | |
| 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