chung-leong / zigar

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

C pointer not working correctly #405

Closed chung-leong closed 4 months ago

chung-leong commented 4 months ago
  1) Integration tests (node-zigar, Debug)
       Function calling
         should call fprintf correctly:
     fprintf(args[0], ...): [*c]cimport.struct__iobuf cannot point to a *cimport.struct__iobuf object
  TypeError: [*c]cimport.struct__iobuf cannot point to a *cimport.struct__iobuf object
      at Proxy.initializer (<anonymous>:2701:15)
      at structure.constructor.setValue (<anonymous>:1858:19)
      at structure.constructor.set (<anonymous>:1869:24)
      at new Arg0023 (<anonymous>:4444:21)
      at fprintf (<anonymous>:5224:44)
      at file:///C:/Users/Chung%20Leong/zigar/zigar-compiler/test/integration/function-calling/tests.js:779:24
      at capture (file:///C:/Users/Chung%20Leong/zigar/zigar-compiler/test/integration/capture.js:14:11)
      at Context.<anonymous> (file:///C:/Users/Chung%20Leong/zigar/zigar-compiler/test/integration/function-calling/tests.js:778:28)