fix incorrect getThisReference bind - fixes #688

This commit is contained in:
Sebastian McKenzie
2015-02-04 08:26:18 +11:00
parent c35f041091
commit 23c6e7e168

View File

@@ -150,7 +150,7 @@ var visitor = {
// top level so `this` is the instance
t.thisExpression :
// not in the top level so we need to create a reference
self.getThisReference;
self.getThisReference.bind(self);
var callback = self.specHandle;
if (self.isLoose) callback = self.looseHandle;