Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove arguments.callee from AuthenticationError #1043

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rommni
Copy link

@rommni rommni commented Apr 7, 2025

We have a problem using export on our systems, when a bad token is sent to the Authorization system it throws the following error:

TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them

The error seems to be caused by AuthenticationError captureStackTrace which uses arguments.callee.

Checklist

  • I have read the CONTRIBUTING guidelines.
  • I have added test cases which verify the correct operation of this feature or patch. --- not concerned
  • I have added documentation pertaining to this feature or patch. -- not concerned
  • The automated test suite ($ make test) executes successfully.
  • The automated code linting ($ make lint) executes successfully. -- some lint errors however they do not concern the code i edited

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant