diff cbackend.js @ 137:101fa04ee9e1

Fix calling methods on objects that are not self when self implements the method being called
author Mike Pavone <pavone@retrodev.com>
date Thu, 08 Aug 2013 21:46:05 -0700
parents f98790d8a53d
children 833624457b81
line wrap: on
line diff
--- a/cbackend.js	Thu Aug 08 20:04:49 2013 -0700
+++ b/cbackend.js	Thu Aug 08 21:46:05 2013 -0700
@@ -237,6 +237,8 @@
 					args.splice(0, 0, ', ' + obj);
 					start = 1;
 				}
+			} else if(!(args[0] instanceof symbol) || args[0].name != 'self') {
+				funinfo = null;
 			}
 			method = true;
 			break;