| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 211f058 commit e42e4b2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -12,8 +12,7 @@ | |||
| 12 | 12 | #include <unordered_map> | |
| 13 | 13 | #endif // DEBUG | |
| 14 | 14 | ||
| 15 | - namespace node { | ||
| 16 | - namespace debug { | ||
| 15 | + namespace node::debug { | ||
| 17 | 16 | ||
| 18 | 17 | #ifdef DEBUG | |
| 19 | 18 | using v8::Context; | |
@@ -41,7 +40,7 @@ void GetV8FastApiCallCount(const FunctionCallbackInfo<Value>& args) { | |||
| 41 | 40 | return; | |
| 42 | 41 | } | |
| 43 | 42 | Utf8Value utf8_key(env->isolate(), args[0]); | |
| 44 | - args.GetReturnValue().Set(GetV8FastApiCallCount(utf8_key.ToString())); | ||
| 43 | + args.GetReturnValue().Set(GetV8FastApiCallCount(utf8_key.ToStringView())); | ||
| 45 | 44 | } | |
| 46 | 45 | ||
| 47 | 46 | void SlowIsEven(const FunctionCallbackInfo<Value>& args) { | |
@@ -93,8 +92,7 @@ void Initialize(Local<Object> target, | |||
| 93 | 92 | } | |
| 94 | 93 | #endif // DEBUG | |
| 95 | 94 | ||
| 96 | - } // namespace debug | ||
| 97 | - } // namespace node | ||
| 95 | + } // namespace node::debug | ||
| 98 | 96 | ||
| 99 | 97 | #ifdef DEBUG | |
| 100 | 98 | NODE_BINDING_CONTEXT_AWARE_INTERNAL(debug, node::debug::Initialize) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments