chung-leong / zigar

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

Error set doesn't work in optional #445

Closed chung-leong closed 1 month ago

chung-leong commented 1 month ago
  1) Integration tests (node-zigar, Debug)
       Type handling
         Error set
           should handle error in optional:
     TypeError: Error number does not corresponds to any error in error set ErrorSet0004: 5
      at findError (<anonymous>:4571:19)
      at ?ErrorSet0004.getError (<anonymous>:4581:20)
      at ?ErrorSet0004.get (<anonymous>:4800:27)
      at Function.getValue (<anonymous>:3210:19)
      at Function.get (<anonymous>:3138:22)
      at Context.<anonymous> (file:///home/cleong/zigar/zigar-compiler/test/integration/type-handling/error-set/tests.js:147:21)