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

Access to Promise methods in a way different from dot trigger spec-only #534

Closed
zloirock opened this issue Aug 6, 2024 · 1 comment · Fixed by #535
Closed

Access to Promise methods in a way different from dot trigger spec-only #534

zloirock opened this issue Aug 6, 2024 · 1 comment · Fixed by #535

Comments

@zloirock
Copy link
Contributor

zloirock commented Aug 6, 2024

Promise['all'];  // error  Avoid using non-standard 'Promise.undefined'  promise/spec-only
var method = 'all';
Promise[method]; // error  Avoid using non-standard 'Promise.method'     promise/spec-only
@zloirock
Copy link
Contributor Author

zloirock commented Aug 6, 2024

Unlike #533, it can't be worked around by adding undefined or something like that to allowedMethods.

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