GeezerVison is showing github.com — src: elevate v8 namespace · nodejs/node@8fe70e8
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: src/cares_wrap.cc +3-2Lines changed: 3 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -64,6 +64,7 @@ using v8::FunctionTemplate; |
64 | 64 | using v8::HandleScope; |
65 | 65 | using v8::Int32; |
66 | 66 | using v8::Integer; |
| 67 | +using v8::Isolate; |
67 | 68 | using v8::Local; |
68 | 69 | using v8::Null; |
69 | 70 | using v8::Object; |
@@ -1917,7 +1918,7 @@ int ParseIP(const char* ip, ParseIPResult* result = nullptr) { |
1917 | 1918 | } |
1918 | 1919 |
|
1919 | 1920 | void CanonicalizeIP(const FunctionCallbackInfo<Value>& args) { |
1920 | | - v8::Isolate* isolate = args.GetIsolate(); |
| 1921 | + Isolate* isolate = args.GetIsolate(); |
1921 | 1922 | node::Utf8Value ip(isolate, args[0]); |
1922 | 1923 |
|
1923 | 1924 | ParseIPResult result; |
@@ -1927,7 +1928,7 @@ void CanonicalizeIP(const FunctionCallbackInfo<Value>& args) { |
1927 | 1928 | char canonical_ip[INET6_ADDRSTRLEN]; |
1928 | 1929 | const int af = (rc == 4 ? AF_INET : AF_INET6); |
1929 | 1930 | CHECK_EQ(0, uv_inet_ntop(af, &result, canonical_ip, sizeof(canonical_ip))); |
1930 | | - v8::Local<String> val = String::NewFromUtf8(isolate, canonical_ip, |
| 1931 | + Local<String> val = String::NewFromUtf8(isolate, canonical_ip, |
1931 | 1932 | v8::NewStringType::kNormal).ToLocalChecked(); |
1932 | 1933 | args.GetReturnValue().Set(val); |
1933 | 1934 | } |
|