Unit tests fail on Node.js v14.x and v15.x - Check failed: result.second.
See original GitHub issueWhen using the latest Node.js LTS Fermium v14.15.0, the unit test began to fail consistently and it also reproduces on v15.x versions. Backtrace is
#
# Fatal error in , line 0
# Check failed: result.second.
#
#
#
#FailureMessage Object: 0x7fff04fd3a70
1: 0xa70141 [node]
2: 0x19cf084 V8_Fatal(char const*, ...) [node]
3: 0xe594c9 v8::internal::GlobalBackingStoreRegistry::Register(std::shared_ptr<v8::internal::BackingStore>) [node]
4: 0xba4a18 v8::ArrayBuffer::GetBackingStore() [node]
5: 0x9c18f0 napi_get_typedarray_info [node]
6: 0x7fa130ce70ef [/root/rclnodejs/node_modules/ref-napi/prebuilds/linux-x64/node.napi.node]
7: 0x7fa130ce7918 [/root/rclnodejs/node_modules/ref-napi/prebuilds/linux-x64/node.napi.node]
8: 0x7fa130ce7bbb [/root/rclnodejs/node_modules/ref-napi/prebuilds/linux-x64/node.napi.node]
9: 0x7fa130cefceb Napi::details::CallbackData<void (*)(Napi::CallbackInfo const&), void>::Wrapper(napi_env__*, napi_callback_info__*) [/root/rclnodejs/node_modules/ref-napi/prebuilds/linux-x64/node.napi.node]
and the corresponding PR #716
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (11 by maintainers)
Top Results From Across the Web
JavaScript unit tests fail during Jenkins build - Stack Overflow
On Windows, my projects build successfully. When Jenkins runs the builds on Linux, however, I randomly will see unit test failures that seem...
Read more >Node.js v19.3.0 Documentation
It will then check that the promise is not rejected. If asyncFn is a function and it throws an error synchronously, assert.doesNotReject() will...
Read more >Installing a custom version of NVM and Node.js
DreamHost support is unable to assist with custom installations. The directions below will explain how to install Node.js but if you find ......
Read more >Download & Update Node.js to the Latest Version! Node v19 ...
The next LTS version, v18 is planned to take over on 2022-10-25. In this article below, you'll find changelogs and download / update...
Read more >Testing Node.js | WebStorm Documentation - JetBrains
The current page describes testing with Mocha, which is a JavaScript test framework that is especially helpful for executing asynchronous ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
After forking
ref-napi
,ref-struct-di
andref-array-di
and making some changes, we can pass all the unit tests on latest galactic release now 😄 , if you want to experiencerclnodejs
with nodejs >= 14 please check out branch https://github.com/RobotWebTools/rclnodejs/tree/nodejs-16I think the issue was fixed, so close it.