$ bun --version
1.0.29
$ bun
Bun is a fast JavaScript runtime, package manager, bundler, and test runner. (1.0.29-canary.28 (331d079d))
$ node --version
v21.6.0
To install dependencies:
npm install
To run:
npm run configure
npm run build
To test:
node lib/index.js
bun lib/index.js
Node output:
start
end
Bun output:
Segmentation fault at address 0x0
...\src\binding.cpp:18:0: 0x7ffb2a071123 in Test (binding.obj)
napi_get_buffer_info(env, argv[0], reinterpret_cast<void**>(&bufferData), nullptr);
???:?:?: 0x7ff719ccef5e in ??? (bun.exe)
???:?:?: 0x1c30000115d in ??? (???)
???:?:?: 0x1c30000111f in ??? (???)