Skip to content

Commit f0b871b

Browse files
committed
src: remove unused warning in node_contextify
PR-URL: #16408 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
1 parent a37a0ad commit f0b871b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node_contextify.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,8 @@ class ContextifyContext {
440440
desc_for_sandbox->set_configurable(desc.configurable());
441441
}
442442
// Set the property on the sandbox.
443-
sandbox->DefineProperty(context, property, *desc_for_sandbox);
443+
sandbox->DefineProperty(context, property, *desc_for_sandbox)
444+
.FromJust();
444445
};
445446

446447
if (desc.has_get() || desc.has_set()) {

0 commit comments

Comments
 (0)