From ca1263dd319e173a68218fe6030aa5b96fd540ba Mon Sep 17 00:00:00 2001 From: Franziska Hinkelmann Date: Mon, 24 Jul 2017 16:56:11 +0200 Subject: [PATCH] src: replace deprecated ForceSet() method ForceSet() is marked to be deprecated. Replacing it with DefineOwnProperty(). --- src/async-wrap.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/async-wrap.cc b/src/async-wrap.cc index 0afaf663716ad2..a6385671d3a9ea 100644 --- a/src/async-wrap.cc +++ b/src/async-wrap.cc @@ -512,10 +512,10 @@ void AsyncWrap::Initialize(Local target, static_cast(v8::ReadOnly | v8::DontDelete); #define FORCE_SET_TARGET_FIELD(obj, str, field) \ - (obj)->ForceSet(context, \ - FIXED_ONE_BYTE_STRING(isolate, str), \ - field, \ - ReadOnlyDontDelete).FromJust() + (obj)->DefineOwnProperty(context, \ + FIXED_ONE_BYTE_STRING(isolate, str), \ + field, \ + ReadOnlyDontDelete).FromJust() // Attach the uint32_t[] where each slot contains the count of the number of // callbacks waiting to be called on a particular event. It can then be