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 method toSorted was not transformed #9750

Closed
Alan-Asl opened this issue Nov 20, 2024 · 2 comments
Closed

Array method toSorted was not transformed #9750

Alan-Asl opened this issue Nov 20, 2024 · 2 comments
Labels

Comments

@Alan-Asl
Copy link

Describe the bug

The toSorted method was supported by Chrome from 110.
But I don't see swc transform this method on playground.
image
image

Input code

No response

Config

No response

Playground link (or link to the minimal reproduction)

https://play.swc.rs/?version=1.9.2&code=H4sIAAAAAAAAA4uO1SvJD84vKklN0dAEABMqV1sNAAAA&config=H4sIAAAAAAAAA1WOSw6DMAxE9zlF5HUXXVVqF71BDxGlhgblJztURYi7EwKhsLNnxs8zCimhYw0POeYxL1ERI%2B17VnjwSf2yAqidYk0mJrhUt%2BPFapRlLNK0OmBDYKzOpjnjTTMc2Tq4SMh8Di5R5VuLZ7LY6ODCuy%2Fm1jkNEUs%2FvsE%2FVJ%2FtYDD8qpeJ%2BlVD%2Fz2AFLWYljagPxQcyqe8XwtTTDN6Rv7ELAEAAA%3D%3D

SWC Info output

No response

Expected behavior

toSorted method being compiled.

Actual behavior

No response

Version

1.9.2

Additional context

No response

@Alan-Asl Alan-Asl added the C-bug label Nov 20, 2024
@kdy1
Copy link
Member

kdy1 commented Nov 20, 2024

This is not what SWC is expected to do

@kdy1 kdy1 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 20, 2024
@swc-bot
Copy link
Collaborator

swc-bot commented Dec 20, 2024

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Dec 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

3 participants