esm: make hasAsyncGraph non-enumerable · nodejs/node@2b2591d

@@ -56,6 +56,7 @@ using v8::ObjectTemplate;

5656

using v8::PrimitiveArray;

5757

using v8::Promise;

5858

using v8::PromiseRejectEvent;

59+

using v8::PropertyAttribute;

5960

using v8::PropertyCallbackInfo;

6061

using v8::ScriptCompiler;

6162

using v8::ScriptOrigin;

@@ -1391,7 +1392,10 @@ void ModuleWrap::CreatePerIsolateProperties(IsolateData* isolate_data,

13911392

SetConstructorFunction(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