ljharb / get-intrinsic

Get and robustly cache all JS language-level intrinsics at first require time.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ERROR - "arguments.callee" cannot be used in strict mode

ektadesai22 opened this issue · comments

ERROR - "arguments.callee" cannot be used in strict mode is coming from node_modules/get-intrinsic/index.js:37

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/arguments/callee
image

The 5th edition of ECMAScript (ES5) forbids use of arguments.callee() in strict mode.

Can you please solve this?

Where are you getting this error? The only use of callee is here which is inside a try/catch, so it should be impossible for this error to appear.

Closing pending reproduction information.