File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
jones-ndb/impl/src/common Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,6 @@ using namespace v8;
27
27
28
28
29
29
void report_error (TryCatch * err) {
30
- EscapableHandleScope scope (Isolate::GetCurrent ());
31
30
String::Utf8Value exception (err->Exception ());
32
31
String::Utf8Value stack (err->StackTrace ());
33
32
Handle<Message> message = err->Message ();
@@ -51,11 +50,12 @@ void work_thd_run(uv_work_t *req) {
51
50
52
51
53
52
void main_thd_complete_async_call (AsyncCall *m) {
54
- EscapableHandleScope scope (Isolate::GetCurrent ());
53
+ v8::Isolate * isolate = Isolate::GetCurrent ();
54
+ HandleScope scope (isolate);
55
55
v8::TryCatch try_catch;
56
56
try_catch.SetVerbose (true );
57
57
58
- m->doAsyncCallback (Isolate::GetCurrent () ->GetCurrentContext ()->Global ());
58
+ m->doAsyncCallback (isolate ->GetCurrentContext ()->Global ());
59
59
60
60
/* exceptions */
61
61
if (try_catch.HasCaught ()) {
You can’t perform that action at this time.
0 commit comments