GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: replace usage of deprecated GetDebugContext · outsideris/node@d515a3f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • debug-agent.cc
    • node_contextify.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/debug-agent.cc‎

Copy file name to clipboardExpand all lines: src/debug-agent.cc
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,8 @@ void Agent::Enable() {
124124

125125
// Assign environment to the debugger's context
126126
// NOTE: The debugger context is created after `SetMessageHandler()` call
127-
parent_env()->AssignToContext(v8::Debug::GetDebugContext());
127+
auto debug_context = v8::Debug::GetDebugContext(parent_env()->isolate());
128+
parent_env()->AssignToContext(debug_context);
128129
}
129130

130131

Collapse file

‎src/node_contextify.cc‎

Copy file name to clipboardExpand all lines: src/node_contextify.cc
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,12 +243,12 @@ class ContextifyContext {
243243
Local<String> script_source(args[0]->ToString(args.GetIsolate()));
244244
if (script_source.IsEmpty())
245245
return; // Exception pending.
246-
Local<Context> debug_context = Debug::GetDebugContext();
246+
Local<Context> debug_context = Debug::GetDebugContext(args.GetIsolate());
247247
Environment* env = Environment::GetCurrent(args);
248248
if (debug_context.IsEmpty()) {
249249
// Force-load the debug context.
250250
Debug::GetMirror(args.GetIsolate()->GetCurrentContext(), args[0]);
251-
debug_context = Debug::GetDebugContext();
251+
debug_context = Debug::GetDebugContext(args.GetIsolate());
252252
CHECK(!debug_context.IsEmpty());
253253
// Ensure that the debug context has an Environment assigned in case
254254
// a fatal error is raised. The fatal exception handler in node.cc

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.