From 7c7cd6f9b8ed18b653338119d3f8ca16d3b5ae2e Mon Sep 17 00:00:00 2001 From: Sebastian McKenzie Date: Tue, 6 Jan 2015 12:08:53 +1100 Subject: [PATCH] use thisExpression instead of identifier("this") --- lib/6to5/transformation/transformers/_alias-functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/6to5/transformation/transformers/_alias-functions.js b/lib/6to5/transformation/transformers/_alias-functions.js index 2230a44e9a..5cf9003c84 100644 --- a/lib/6to5/transformation/transformers/_alias-functions.js +++ b/lib/6to5/transformation/transformers/_alias-functions.js @@ -67,7 +67,7 @@ var go = function (getBody, node, file, scope) { } if (thisId) { - pushDeclaration(thisId, t.identifier("this")); + pushDeclaration(thisId, t.thisExpression()); } };