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

feat: adding support for Buffer.isBuffer and Buffer.isEncoding #746

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

lewisgcm
Copy link
Contributor

Issue # (if available)

No issue associated with this change.

Description of changes

This PR adds support for Buffer.isBuffer and Buffer.isEncoding (see https://nodejs.org/api/buffer.html).

Checklist

  • [Y] Created unit tests in tests/unit and/or in Rust for my feature if needed
  • [Y] Ran make fix to format JS and apply Clippy auto fixes
  • [Y] Made sure my code didn't add any additional warnings: make check
  • [NA] Added relevant type info in types/ directory
  • [NA] Updated documentation if needed (API.md/README.md/Other)

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Copy link
Contributor

@richarddavison richarddavison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, some minor comments!

modules/llrt_buffer/src/buffer.rs Outdated Show resolved Hide resolved
modules/llrt_buffer/src/buffer.rs Outdated Show resolved Hide resolved
…rror on js string to rust string cast failure.
@richarddavison richarddavison merged commit 72013b8 into awslabs:main Dec 18, 2024
11 checks passed
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