In attempting to retrieve the arguments.callee
property in the following basic function, I encountered an error preventing me from doing so.
function foo(a = 50, b) {
console.log(arguments.callee);
}
foo(10, 50);
Why is this issue occurring? It appears that the function is executing in strict mode, but how is this possible given that I did not specify the 'use strict';
statement?
This test is being conducted on Google Chrome.