From bef1c3b748fc1a9b0401a00741e25d31d861d57c Mon Sep 17 00:00:00 2001 From: cjihrig Date: Sat, 3 Nov 2018 11:41:17 -0400 Subject: [PATCH] src: fix Set() usage in node.h PR-URL: https://github.com/nodejs/node/pull/24060 Reviewed-By: Daniel Bevenius Reviewed-By: Anna Henningsen Reviewed-By: Joyee Cheung --- src/node.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.h b/src/node.h index 5bbaa11def5c86..fbf9128be42429 100644 --- a/src/node.h +++ b/src/node.h @@ -369,7 +369,7 @@ inline void NODE_SET_METHOD(v8::Local recv, v8::Local fn_name = v8::String::NewFromUtf8(isolate, name, v8::NewStringType::kInternalized).ToLocalChecked(); fn->SetName(fn_name); - recv->Set(fn_name, fn); + recv->Set(context, fn_name, fn).FromJust(); } #define NODE_SET_METHOD node::NODE_SET_METHOD