Skip to content

Added write method#99

Merged
dop251 merged 2 commits intodop251:masterfrom
stampy88:write_and_to_string
Mar 2, 2025
Merged

Added write method#99
dop251 merged 2 commits intodop251:masterfrom
stampy88:write_and_to_string

Conversation

@stampy88
Copy link
Copy Markdown
Contributor

  • added the write method and fleshed out the toString method to match the behavior with Node's Buffer class. The test cases are pretty exhaustive to ensure all the edge cases, and Node specific behavior is covered.

- added the `write` method and fleshed out the `toString` method to match the behavior with Node's `Buffer` class. The test cases are pretty exhaustive to ensure all the edge cases, and Node specific behavior is covered.
@dop251 dop251 merged commit 0ba139d into dop251:master Mar 2, 2025
@dop251
Copy link
Copy Markdown
Owner

dop251 commented Mar 2, 2025

Thanks!

benallfree pushed a commit to benallfree/goja_nodejs that referenced this pull request May 3, 2025
* Added write method
- added the `write` method and fleshed out the `toString` method to match the behavior with Node's `Buffer` class. The test cases are pretty exhaustive to ensure all the edge cases, and Node specific behavior is covered.

* Use getRequiredStringArgument
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