We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92b0555 commit d90a5e0Copy full SHA for d90a5e0
src/async-wrap.cc
@@ -512,10 +512,10 @@ void AsyncWrap::Initialize(Local<Object> target,
512
static_cast<v8::PropertyAttribute>(v8::ReadOnly | v8::DontDelete);
513
514
#define FORCE_SET_TARGET_FIELD(obj, str, field) \
515
- (obj)->ForceSet(context, \
516
- FIXED_ONE_BYTE_STRING(isolate, str), \
517
- field, \
518
- ReadOnlyDontDelete).FromJust()
+ (obj)->DefineOwnProperty(context, \
+ FIXED_ONE_BYTE_STRING(isolate, str), \
+ field, \
+ ReadOnlyDontDelete).FromJust()
519
520
// Attach the uint32_t[] where each slot contains the count of the number of
521
// callbacks waiting to be called on a particular event. It can then be
0 commit comments