ignore this and arguments when performing TCO on shadowed functions - fixes #1564

This commit is contained in:
Sebastian McKenzie
2015-05-18 22:41:27 +01:00
parent 9be3d9c8e1
commit b4cd2df745
3 changed files with 29 additions and 5 deletions

View File

@@ -0,0 +1,8 @@
(function(){
var foo = () => {
this;
arguments;
foo();
};
foo();
});

View File

@@ -0,0 +1,13 @@
"use strict";
(function () {
var _this = this,
_arguments = arguments;
var foo = function foo() {
_this;
_arguments;
foo();
};
foo();
});