changeset 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 4c7c3d3e0265
children 5bcaddff29f5
files cbackend.js
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;