fix tail call deopt check

This commit is contained in:
Sebastian McKenzie
2015-02-11 20:16:50 +11:00
parent bf8f80faf7
commit e0bfc72700

View File

@@ -65,7 +65,7 @@ TailCallTransformer.prototype.hasDeopt = function () {
// check if the ownerId has been reassigned, if it has then it's not safe to
// perform optimisations
var ownerIdInfo = this.scope.getBindingInfo(this.ownerId.name);
return ownerIdInfo && !ownerIdInfo.reassigned;
return ownerIdInfo && ownerIdInfo.reassigned;
};
TailCallTransformer.prototype.run = function () {