Skip to content

getOwnPropertyNames memory corruption - #262

Open
amoffat wants to merge 2 commits into
justjake:mainfrom
amoffat:get-property-names
Open

getOwnPropertyNames memory corruption#262
amoffat wants to merge 2 commits into
justjake:mainfrom
amoffat:get-property-names

Conversation

@amoffat

@amoffat amoffat commented May 13, 2026

Copy link
Copy Markdown

getOwnPropertyNames was allocating with malloc things that would be freed by js_free, which was a mismatch. In my use case, it was eventually causing a crash. The test explains the "drifting" concept leading to that.

The allocator.test.ts is general enough to be used like the leak.test.ts tests, where you can throw things in there and ensure that they aren't also having mismatched allocations.

Awesome library btw

@justjake
justjake enabled auto-merge (squash) July 23, 2026 21:00
@justjake
justjake disabled auto-merge July 23, 2026 21:01
@justjake
justjake enabled auto-merge (squash) July 23, 2026 21:01
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