diff --git a/src/env.h b/src/env.h index 0b71007faafbc7..e6c50d66c28d3c 100644 --- a/src/env.h +++ b/src/env.h @@ -91,7 +91,6 @@ class ModuleWrap; V(contextify_global_private_symbol, "node:contextify:global") \ V(decorated_private_symbol, "node:decorated") \ V(npn_buffer_private_symbol, "node:npnBuffer") \ - V(processed_private_symbol, "node:processed") \ V(selected_npn_buffer_private_symbol, "node:selectedNpnBuffer") \ V(domain_private_symbol, "node:domain") \ diff --git a/src/node.cc b/src/node.cc index e63a0457d49551..f8c445a678c42a 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1629,16 +1629,6 @@ void AppendExceptionLine(Environment* env, Local err_obj; if (!er.IsEmpty() && er->IsObject()) { err_obj = er.As(); - - auto context = env->context(); - auto processed_private_symbol = env->processed_private_symbol(); - // Do it only once per message - if (err_obj->HasPrivate(context, processed_private_symbol).FromJust()) - return; - err_obj->SetPrivate( - context, - processed_private_symbol, - True(env->isolate())); } // Print (filename):(line number): (message). diff --git a/src/node_contextify.cc b/src/node_contextify.cc index ec97e821db1636..f7c5102f669798 100644 --- a/src/node_contextify.cc +++ b/src/node_contextify.cc @@ -701,9 +701,7 @@ class ContextifyScript : public BaseObject { compile_options); if (v8_script.IsEmpty()) { - if (display_errors) { - DecorateErrorStack(env, try_catch); - } + DecorateErrorStack(env, try_catch); try_catch.ReThrow(); return; }