请教C++问题。3.6.1 Android端如何让Uncaught Exception 回调到"__errorHandler" 中

在3.4.2的时候,可以直接修改C++代码可以达到效果,如下:

但相同的代码转移到3.6.1就不行了,报错:

  • location : v8::HandleScope::CreateHandle()
  • msg : Cannot create a handle without a HandleScope

3.6.1的代码如图:

实在不熟悉c++,请问有没有大佬知道这个错误是原因,或者有没办法让3.6.1的Uncaught Exception 回调到"__errorHandler" 中