Skip to content

Failing tests for put edgecases#39

Merged
mafintosh merged 6 commits into
mainfrom
put-edgecases
May 11, 2026
Merged

Failing tests for put edgecases#39
mafintosh merged 6 commits into
mainfrom
put-edgecases

Conversation

@HDegroote

Copy link
Copy Markdown
Contributor

The first one might be undefined behaviour, if only buffer values are supported.

The second one is quite worrying: behaviour shouldn't change after re-opening storage.

A trivial fix is adding a guard here:

if (b4a.equals(existing, value)) return false
, but that would just work around the issue, so i don't think it's the correct fix.

@lejeunerenard lejeunerenard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you for finding the bug! Fix is in #43.

Comment thread test/basic.js Outdated
Comment thread test/basic.js Outdated
HDegroote and others added 3 commits April 18, 2026 11:25
Co-authored-by: Sean Zellmer <sean@lejeunerenard.com>
Co-authored-by: Sean Zellmer <sean@lejeunerenard.com>
@HDegroote HDegroote marked this pull request as ready for review April 18, 2026 09:31
@lejeunerenard lejeunerenard self-requested a review April 18, 2026 17:00

@lejeunerenard lejeunerenard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Ready to go after fix is merged.

@mafintosh mafintosh requested a review from a team May 11, 2026 20:09
@mafintosh mafintosh merged commit 8df516d into main May 11, 2026
4 checks passed
@mafintosh mafintosh deleted the put-edgecases branch May 11, 2026 20:10
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.

3 participants