ignore this and arguments when performing TCO on shadowed functions - fixes #1564
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
(function(){
|
||||
var foo = () => {
|
||||
this;
|
||||
arguments;
|
||||
foo();
|
||||
};
|
||||
foo();
|
||||
});
|
||||
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
|
||||
(function () {
|
||||
var _this = this,
|
||||
_arguments = arguments;
|
||||
|
||||
var foo = function foo() {
|
||||
_this;
|
||||
_arguments;
|
||||
foo();
|
||||
};
|
||||
foo();
|
||||
});
|
||||
Reference in New Issue
Block a user