Disposing the isolate that is entered by a thread
如图,如果把花括号注释掉,运行会报错:
Fatal error in v8::Isolate::Dispose() Disposing the isolate that is entered by a thread.
原因和作用域有关,看下图:
v8::Isolate::Scope
void Isolate::Enter
Isolate::Dispose
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