# HG changeset patch # User Mike Pavone # Date 1376023565 25200 # Node ID 101fa04ee9e10da932cefd9a44ea903a4030917a # Parent 4c7c3d3e0265cd4972fb5bfc7c84854ed5867722 Fix calling methods on objects that are not self when self implements the method being called diff -r 4c7c3d3e0265 -r 101fa04ee9e1 cbackend.js --- 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;