There was an error while loading. Please reload this page.
Version: 7.3.0, 6.4.0, 4.0.0 (Just tested these three) Platform:
function test(){ this['fake'] = () =>{ console.log(arguments) } } var a = new test('a'); a.fake('dummyArguments') => 'a'
Shouldnt this return 'dummyArguments' since the arguments object is scoped http://stackoverflow.com/questions/29216881/inner-function-scope-in-javascript
Where as when not using the function shorthand:
function test(){ this['fake'] = function() { console.log(arguments) } } var a = new test('a'); a.fake('dummyArguments') => 'dummyArguments'
Version: 7.3.0, 6.4.0, 4.0.0 (Just tested these three)
Platform:
Shouldnt this return 'dummyArguments' since the arguments object is scoped http://stackoverflow.com/questions/29216881/inner-function-scope-in-javascript
Where as when not using the function shorthand: