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 - false positive #2621

ljharb opened this issue Jan 10, 2020 · 1 comment
Closed - false positive #2621

ljharb opened this issue Jan 10, 2020 · 1 comment


Copy link

@ljharb ljharb commented Jan 10, 2020

Description of the false positive

Strict mode can not use arguments.callee, this is true, but i'm using it inside a try/catch explicitly to trigger the exception.

It's also marked as "has no effect", but it throws an exception in strict mode code, which is quite a strong effect.

In other words, I think that both of these should never show up for arguments.callee. In sloppy mode, this is a noop expression; in strict mode, it has an effect (and ideally it should be permitted as a noop expression inside a try/catch)


This comment has been minimized.

Copy link

@asgerf asgerf commented Jan 21, 2020

Hi ljharb,

Thanks for the report. #2627 and #2624 should fix the two spurious alerts. The alerts should go away next time updates.

@asgerf asgerf closed this Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.