Fix this binding for onEnter and onLeave callbacks

This commit is contained in:
Ole André Vadla Ravnås
2014-10-25 21:10:15 +02:00
parent b9bdde5a08
commit bf68ffebf5
+2 -2
View File
@@ -203,10 +203,10 @@ function add(targets) {
pending.push(function attachToTarget() {
Interceptor.attach(ptr(targetAddress), {
onEnter: function onEnter(args) {
h[0].onEnter(log, args, state);
h[0].onEnter.call(this, log, args, state);
},
onLeave: function onLeave(retval) {
h[0].onLeave(log, retval, state);
h[0].onLeave.call(this, log, retval, state);
}
});
});