mirror of
https://github.com/oven-sh/bun
synced 2026-02-14 04:49:06 +00:00
FINDINGS: - Individual yoga tests pass (19/19 tests) - Multiple test files together cause ASAN heap-use-after-free in YGNodeFree - Root cause: YGNodeFree assumes child/parent nodes are valid, but GC can free them in arbitrary order - Crash occurs in facebook::yoga::Node::setOwner() when YGNodeFree tries to clean up children CHANGES: - Enhanced JSYogaNode with WriteBarrier children array for GC references (mirrors React Native _reactSubviews) - Fixed clone() method to avoid double YGNode creation that caused ownership conflicts - TEMPORARY: Skip YGNodeFree during JS finalizer to prevent crashes (causes memory leaks) - Moved yoga tests to test/js/bun/yoga/ directory STATUS: All tests now pass, but memory leaks need to be addressed with proper YGNode lifecycle management 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>