diff options
author | cjihrig <cjihrig@gmail.com> | 2018-10-07 17:05:30 +0300 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2018-10-10 17:31:50 +0300 |
commit | 59d2bd9fb5da1606ce673246aa5ca9fe17c7dd53 (patch) | |
tree | 587fd32b2029b5e803cc94697c4b1838447b9c5b /src | |
parent | a8530bc4e06642b0cf6b602c1c04d39ed9aeca26 (diff) |
src: fix ToObject() usage in exceptions.cc
PR-URL: https://github.com/nodejs/node/pull/23314
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/exceptions.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/exceptions.cc b/src/exceptions.cc index c9e308240fe..98c87603dd9 100644 --- a/src/exceptions.cc +++ b/src/exceptions.cc @@ -128,7 +128,9 @@ Local<Value> UVException(Isolate* isolate, String::Concat(isolate, js_msg, FIXED_ONE_BYTE_STRING(isolate, "'")); } - Local<Object> e = Exception::Error(js_msg)->ToObject(isolate); + Local<Object> e = + Exception::Error(js_msg)->ToObject(isolate->GetCurrentContext()) + .ToLocalChecked(); e->Set(env->errno_string(), Integer::New(isolate, errorno)); e->Set(env->code_string(), js_code); |