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

Array.at() passing ES5 check #222

Open
christowiz opened this issue Dec 20, 2024 · 3 comments
Open

Array.at() passing ES5 check #222

christowiz opened this issue Dec 20, 2024 · 3 comments

Comments

@christowiz
Copy link

Requested Update

es-check is failing when testing array.at() which is an ES2022. I created a ticket in the acorn repo but was told it's not a syntax problem (which in hindsight it isn't).

acornjs/acorn#1335

var arr = [1, 2, 3];
var lastVal = arr.at(-1);

console.log('lastVal:', lastVal);

Run npm run es-check to validate file

https://stackblitz.com/edit/vitejs-vite-iubepdjb?file=package.json,es-check.js

@yowainwright
Copy link
Owner

Working on this! Having fun! Thanks @christowiz! I have a pr fix for the first issue you submitted if you'd like to me to merge and do a feature release?!

@christowiz
Copy link
Author

Hey, @yowainwright. Whenever is fine for the previous issue. I work around the issue currently.

@yowainwright
Copy link
Owner

Thanks for awesome link and considerate issues!

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

No branches or pull requests

2 participants