@@ -160,7 +160,6 @@ using v8::Object;
160160using v8::ObjectTemplate;
161161using v8::Promise;
162162using v8::PropertyAttribute;
163- using v8::PropertyCallbackInfo;
164163using v8::ReadOnly;
165164using v8::Script;
166165using v8::ScriptCompiler;
@@ -1672,32 +1671,6 @@ static Local<Object> GetFeatures(Environment* env) {
16721671 return scope.Escape (obj);
16731672}
16741673
1675-
1676- static void DebugPortGetter (Local<Name> property,
1677- const PropertyCallbackInfo<Value>& info) {
1678- Environment* env = Environment::GetCurrent (info);
1679- Mutex::ScopedLock lock (process_mutex);
1680- int port = env->options ()->debug_options ->port ();
1681- #if HAVE_INSPECTOR
1682- if (port == 0 ) {
1683- if (auto io = env->inspector_agent ()->io ())
1684- port = io->port ();
1685- }
1686- #endif // HAVE_INSPECTOR
1687- info.GetReturnValue ().Set (port);
1688- }
1689-
1690-
1691- static void DebugPortSetter (Local<Name> property,
1692- Local<Value> value,
1693- const PropertyCallbackInfo<void >& info) {
1694- Environment* env = Environment::GetCurrent (info);
1695- Mutex::ScopedLock lock (process_mutex);
1696- env->options ()->debug_options ->host_port .port =
1697- value->Int32Value (env->context ()).FromMaybe (0 );
1698- }
1699-
1700-
17011674static void DebugProcess (const FunctionCallbackInfo<Value>& args);
17021675static void DebugEnd (const FunctionCallbackInfo<Value>& args);
17031676
0 commit comments