Disposing the isolate that is entered by a thread
如图,如果把花括号注释掉,运行会报错:
Fatal error in v8::Isolate::Dispose() Disposing the isolate that is entered by a thread.
企业微信截图_17271687875695.png
原因和作用域有关,看下图:
v8::Isolate::Scope
image.png
void Isolate::Enter
Isolate::Dispose
image.png
Fatal signal 4 (SIGILL), code 2 (ILL_ILLOPN), fault addr 0x7472705dfd00 in tid xxx
如图,函数定义了返回值类型void*
,但是没有返回值,导致报错:
Fatal signal 4 (SIGILL), code 2 (ILL_ILLOPN), fault addr 0x7472705dfd00 in tid xxx
网友评论