-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Add 2023 array methods to target features #52242
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
Conversation
@OliverRadini - Take a look at indexAt.ts. You would need to write a similar file for |
@tobeyyyyy brilliant, thanks - I'll take a look and add that in |
@tobeyyyyy Just taken a look, slightly confused though as it seems as though it may already be covered by the tests in findLast.ts. I'm probably getting things confused but I'm not sure what I'd add additionally to that. |
@OliverRadini - Ah, was not aware that a file like that already exists. The first line of the file defines all the targets for which baselines will be created. Right now, the only target in |
@tobeyyyyy ah brilliant, thanks. I amended the line as suggested and indeed did see the errors as expected. Is this the normal behaviour for the tests? I added the line, but now there are failing tests. I suppose I don't quite yet understand the workflow. The errors I get are:
etc. So, what I would expect to see after the change I added on a version which doesn't yet have findLast. Is this the expected behaviour? |
Run > npx hereby baseline-accept |
@microsoft-github-policy-service agree |
@Jack-Works Great, thanks - ran that and all good now. Thanks for the help |
Hopefully this is in a better state now, once I figured out a bit more about how the baseline stuff works 😂 |
Fixes #52220
Adds es2023 array methods to target features.
I haven't added any unit tests for this - I couldn't find anything that tests this already, and I'm afraid I don't know enough about the repo to determine where these would make sense. Any pointers would be much appreciated :)