Как вы узнаете функцию вызова в JavaScript, когда используется строгий режим?
Можно ли увидеть вызываемого абонента функции, когдаuse strict
включен?
'use strict';
function jamie (){
console.info(arguments.callee.caller.name);
//this will output the below error
//uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
};
function jiminyCricket (){
jamie();
}
jiminyCricket ();