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

Add codemod for array-buffer-byte-length package #33

Merged
merged 3 commits into from
Jul 21, 2024
Merged

Add codemod for array-buffer-byte-length package #33

merged 3 commits into from
Jul 21, 2024

Conversation

askoufis
Copy link
Contributor

@askoufis askoufis commented Jul 21, 2024

Codemod for array-buffer-byte-length.

I thought about abstracting some of the ArrayBuffer stuff into a shared util, but I think there's only one other ArrayBuffer shim that needs a codemod, arraybuffer.prototype.slice, so I don't think it's worth it.

EDIT: Actually, I think it could be worth adding utils like transformInstanceMethod and transformInstanceProperty. Would be useful for both ArrayBuffer and TypedArray codemods. I'll contribute them separately if they turn out to be useful.

I'll follow up with the slice codemod in a bit.

@thepassle
Copy link
Collaborator

Oh, this has conflicts now because I merged the other PR, could you fix the conflicts and push? 🙂 otherwise LGTM!

@askoufis
Copy link
Contributor Author

@thepassle Fixed.

@thepassle
Copy link
Collaborator

Thanks!

@thepassle thepassle merged commit 3542c08 into es-tooling:main Jul 21, 2024
3 checks passed
@askoufis askoufis deleted the array-buffer-byte-length branch July 21, 2024 12:15
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

Successfully merging this pull request may close these issues.

2 participants