Error: Maximum call stack size exceeded
at disabled (/Users/gracjan/Sources/node-mupdf/node_modules/debug/debug.js:65:20)
at new StructType (/Users/gracjan/Sources/node-mupdf/node_modules/ref-struct/lib/struct.js:83:7)
at Function.get (/Users/gracjan/Sources/node-mupdf/node_modules/ref-struct/lib/struct.js:156:10)
at Object.get (/Users/gracjan/Sources/node-mupdf/node_modules/ref/lib/ref.js:447:17)
at Object.deref (/Users/gracjan/Sources/node-mupdf/node_modules/ref/lib/ref.js:655:18)
at Buffer.deref (/Users/gracjan/Sources/node-mupdf/node_modules/ref/lib/ref.js:1259:18)
at /Users/gracjan/Sources/node-mupdf/node_modules/ffi/lib/callback.js:62:26
at Object.ForeignFunction.proxy [as clang_visitChildren] (/Users/gracjan/Sources/node-mupdf/node_modules/ffi/lib/_foreign_function.js:59:14)
at Cursor.visitChildren (/Users/gracjan/Sources/node-mupdf/node_modules/libclang/lib/cursor.js:153:7)
at defineType (/Users/gracjan/Sources/node-mupdf/node_modules/ffi-generate/lib/generateffi.js:140:10)
I have no clue how to debug this further.