n-api: directly create Local from Persistent
The v8::PersistentBase<T>.Get
method didn't exist in node 4 and it's
just a helper which creates a new v8::Local
from the given object.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
n-api