From e0bfc727007cf53ef0ad7001fb2da37db0f9ec9a Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Wed, 11 Feb 2015 20:16:50 +1100 Subject: [PATCH] fix tail call deopt check --- lib/6to5/transformation/transformers/es6/tail-call.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/6to5/transformation/transformers/es6/tail-call.js b/lib/6to5/transformation/transformers/es6/tail-call.js index 0704275fee..2cc9ec4fed 100644 --- a/lib/6to5/transformation/transformers/es6/tail-call.js +++ b/lib/6to5/transformation/transformers/es6/tail-call.js @@ -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 () {