esm: make hasAsyncGraph non-enumerable · nodejs/node@2b2591d
@@ -56,6 +56,7 @@ using v8::ObjectTemplate;
5656using v8::PrimitiveArray;
5757using v8::Promise;
5858using v8::PromiseRejectEvent;
59+using v8::PropertyAttribute;
5960using v8::PropertyCallbackInfo;
6061using v8::ScriptCompiler;
6162using v8::ScriptOrigin;
@@ -1391,7 +1392,10 @@ void ModuleWrap::CreatePerIsolateProperties(IsolateData* isolate_data,
13911392SetConstructorFunction(isolate, target, "ModuleWrap", tpl);
1392139313931394 tpl->InstanceTemplate()->SetLazyDataProperty(
1394-FIXED_ONE_BYTE_STRING(isolate, "hasAsyncGraph"), HasAsyncGraph);
1395+FIXED_ONE_BYTE_STRING(isolate, "hasAsyncGraph"),
1396+ HasAsyncGraph,
1397+ Local<Value>(),
1398+ PropertyAttribute::DontEnum);
1395139913961400 isolate_data->set_module_wrap_constructor_template(tpl);
13971401