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: avoid copy on getV8FastApiCallCount · nodejs/node@e42e4b2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • node_debug.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/node_debug.cc‎

Copy file name to clipboardExpand all lines: src/node_debug.cc
+3-5Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@
1212
#include <unordered_map>
1313
#endif // DEBUG
1414

15-
namespace node {
16-
namespace debug {
15+
namespace node::debug {
1716

1817
#ifdef DEBUG
1918
using v8::Context;
@@ -41,7 +40,7 @@ void GetV8FastApiCallCount(const FunctionCallbackInfo<Value>& args) {
4140
return;
4241
}
4342
Utf8Value utf8_key(env->isolate(), args[0]);
44-
args.GetReturnValue().Set(GetV8FastApiCallCount(utf8_key.ToString()));
43+
args.GetReturnValue().Set(GetV8FastApiCallCount(utf8_key.ToStringView()));
4544
}
4645

4746
void SlowIsEven(const FunctionCallbackInfo<Value>& args) {
@@ -93,8 +92,7 @@ void Initialize(Local<Object> target,
9392
}
9493
#endif // DEBUG
9594

96-
} // namespace debug
97-
} // namespace node
95+
} // namespace node::debug
9896

9997
#ifdef DEBUG
10098
NODE_BINDING_CONTEXT_AWARE_INTERNAL(debug, node::debug::Initialize)

0 commit comments

Comments
0 (0)
You are visitor 01402503 — 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.