chung-leong / zigar

Enable the use of Zig code in JavaScript project
https://chung-leong.github.io/zigar/
MIT License
187 stars 3 forks source link

Failing test case: pointer as static variables #479

Closed chung-leong closed 3 weeks ago

chung-leong commented 3 weeks ago
  1) Integration tests (bun-zigar, ReleaseSmall)
       Type handling
         Pointer
           should import pointer as static variables:

      Error: expected [Function] to not throw 'TypeError' but 'TypeError: Pointers in fixed memory c…' was thrown
      + expected - actual

      -TypeError: Pointers in fixed memory cannot point to garbage-collected object
      +TypeError
chung-leong commented 3 weeks ago

Test case wasn't reflecting changes made to how Zig memory is allocated.