Doesn't work with Node 8.1.3
See original GitHub issueNode crashes with error:
../src/async-wrap.cc:349:void node::SetupHooks(const FunctionCallbackInfo<v8::Value> &): Assertion
before_v->IsFunction()’ failed.
1: node::Abort() [/usr/local/Cellar/node/8.1.3/bin/node]
2: node::MakeCallback(v8::Isolate*, v8::Localv8::Object, char const*, int, v8::Localv8::Value, double, double) [/usr/local/Cellar/node/8.1.3/bin/node]
3: node::SetupHooks(v8::FunctionCallbackInfov8::Value const&) [/usr/local/Cellar/node/8.1.3/bin/node]
4: v8::internal::FunctionCallbackArguments::Call(void ()(v8::FunctionCallbackInfov8::Value const&)) [/usr/local/Cellar/node/8.1.3/bin/node]
5: v8::internal::MaybeHandlev8::internal::Object v8::internal::(anonymous namespace)::HandleApiCallHelper<false>(v8::internal::Isolate*, v8::internal::Handlev8::internal::HeapObject, v8::internal::Handlev8::internal::HeapObject, v8::internal::Handlev8::internal::FunctionTemplateInfo, v8::internal::Handlev8::internal::Object, v8::internal::BuiltinArguments) [/usr/local/Cellar/node/8.1.3/bin/node]
6: v8::internal::Builtin_Impl_HandleApiCall(v8::internal::BuiltinArguments, v8::internal::Isolate*) [/usr/local/Cellar/node/8.1.3/bin/node]
7: 0x3b4d1000437d
sh: line 1: 8851 Abort trap: 6 ts-node src/main
`
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top GitHub Comments
@erezool I just published an alpha version 5 of cls-hooked which works (so far) with node v8.1.3. Run
npm i cls-hooked@alpha
to give it a try. Let me know if you come across any issues with it.Yes, this will occur in the current released version v4.1.5 of
cls-hooked
as I beleive the AsychWrap interface has changed in node 8.x to support the new async_hooks API.I’ve been waiting for node 8.2.x to release a new version of cls-hooked that works with async_hooks but since we are getting this error, I might release a beta version until node 8.2.x is released. This will at least allow us to develop and test until 8.2.x