diff options
Diffstat (limited to 'libdeno/api.cc')
-rw-r--r-- | libdeno/api.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libdeno/api.cc b/libdeno/api.cc index 472181819..e6bc670c7 100644 --- a/libdeno/api.cc +++ b/libdeno/api.cc @@ -154,9 +154,10 @@ int deno_respond(Deno* d_, void* user_data, int32_t req_id, deno_buf buf) { v8::Local<v8::Value> args[1]; args[0] = deno::ImportBuf(d, buf); - recv_->Call(context->Global(), 1, args); + auto v = recv_->Call(context, context->Global(), 1, args); if (try_catch.HasCaught()) { + CHECK(v.IsEmpty()); deno::HandleException(context, try_catch.Exception()); return 1; } |