diff options
author | Michaƫl Zasso <mic.besace@gmail.com> | 2016-02-09 00:54:00 +0300 |
---|---|---|
committer | Ali Sheikh <ofrobots@lemonhope.roam.corp.google.com> | 2016-03-04 07:35:20 +0300 |
commit | a729208808e88279961128505730d33450fa358e (patch) | |
tree | 1b0ec66ccffa85237c84f813593435bbf9ad0ab4 /src/node_os.cc | |
parent | 3d7fd9aa2267c599a5cb06ba02073aa4fe6638e8 (diff) |
src: replace usage of deprecated Has
PR-URL: https://github.com/nodejs/node/pull/5159
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'src/node_os.cc')
-rw-r--r-- | src/node_os.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_os.cc b/src/node_os.cc index 92f53a9c407..f432702792f 100644 --- a/src/node_os.cc +++ b/src/node_os.cc @@ -217,7 +217,7 @@ static void GetInterfaceAddresses(const FunctionCallbackInfo<Value>& args) { name = OneByteString(env->isolate(), raw_name); #endif - if (ret->Has(name)) { + if (ret->Has(env->context(), name).FromJust()) { ifarr = Local<Array>::Cast(ret->Get(name)); } else { ifarr = Array::New(env->isolate()); |