@@ -2556,15 +2556,7 @@ static void Binding(const FunctionCallbackInfo<Value>& args) {
25562556 CHECK (args[0 ]->IsString ());
25572557
25582558 Local<String> module = args[0 ].As <String>();
2559-
2560- // Append a string to process.moduleLoadList
2561- char buf[1024 ];
25622559 node::Utf8Value module_v (env->isolate (), module );
2563- snprintf (buf, sizeof (buf), " Binding %s" , *module_v);
2564-
2565- Local<Array> modules = env->module_load_list_array ();
2566- uint32_t l = modules->Length ();
2567- modules->Set (l, OneByteString (env->isolate (), buf));
25682560
25692561 node_module* mod = get_builtin_module (*module_v);
25702562 Local<Object> exports;
@@ -2591,15 +2583,7 @@ static void InternalBinding(const FunctionCallbackInfo<Value>& args) {
25912583 CHECK (args[0 ]->IsString ());
25922584
25932585 Local<String> module = args[0 ].As <String>();
2594-
2595- // Append a string to process.moduleLoadList
2596- char buf[1024 ];
25972586 node::Utf8Value module_v (env->isolate (), module );
2598- snprintf (buf, sizeof (buf), " Internal Binding %s" , *module_v);
2599-
2600- Local<Array> modules = env->module_load_list_array ();
2601- uint32_t l = modules->Length ();
2602- modules->Set (l, OneByteString (env->isolate (), buf));
26032587
26042588 node_module* mod = get_internal_module (*module_v);
26052589 if (mod == nullptr ) return ThrowIfNoSuchModule (env, *module_v);
@@ -2971,11 +2955,6 @@ void SetupProcessObject(Environment* env,
29712955 " version" ,
29722956 FIXED_ONE_BYTE_STRING (env->isolate (), NODE_VERSION));
29732957
2974- // process.moduleLoadList
2975- READONLY_PROPERTY (process,
2976- " moduleLoadList" ,
2977- env->module_load_list_array ());
2978-
29792958 // process.versions
29802959 Local<Object> versions = Object::New (env->isolate ());
29812960 READONLY_PROPERTY (process, " versions" , versions);
0 commit comments