diff options
author | Daniel Bevenius <daniel.bevenius@gmail.com> | 2020-06-03 06:54:14 +0300 |
---|---|---|
committer | Daniel Bevenius <daniel.bevenius@gmail.com> | 2020-06-08 07:20:50 +0300 |
commit | 8a4b5c63e0b90cc036f98933c214f5b765849d44 (patch) | |
tree | 7cc7d1b707bc73f028545403f00d07f5274a8055 /src/api | |
parent | b9739b6e08fe279c239f6b0fbebf8ab6639383a1 (diff) |
src: use Check() instead of FromJust in environment
This commit replaces FromJust() calls with Check() in places where the
value that FromJust() returns is not used.
PR-URL: https://github.com/nodejs/node/pull/33706
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: David Carlier <devnexen@gmail.com>
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/environment.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/api/environment.cc b/src/api/environment.cc index 99b6d855610..a574b916fe6 100644 --- a/src/api/environment.cc +++ b/src/api/environment.cc @@ -555,7 +555,7 @@ void InitializeContextRuntime(Local<Context> context) { if (context->Global()->Get(context, intl_string).ToLocal(&intl_v) && intl_v->IsObject()) { Local<Object> intl = intl_v.As<Object>(); - intl->Delete(context, break_iter_string).FromJust(); + intl->Delete(context, break_iter_string).Check(); } // Delete `Atomics.wake` @@ -566,7 +566,7 @@ void InitializeContextRuntime(Local<Context> context) { if (context->Global()->Get(context, atomics_string).ToLocal(&atomics_v) && atomics_v->IsObject()) { Local<Object> atomics = atomics_v.As<Object>(); - atomics->Delete(context, wake_string).FromJust(); + atomics->Delete(context, wake_string).Check(); } // Remove __proto__ |