src: bundle persistent-to-local methods as class
Create a class PersistentToLocal
which contains three methods,
Strong
, Weak
, and Default
:
-
Strong
returns aLocal
from a strong persistent reference, -
Weak
returns aLocal
from a weak persistent reference, and -
Default
decides based onIsWeak()
which of the above two to call.
These replace node::StrongPersistentToLocal()
,
node::WeakPersistentToLocal()
, and node::PersistentToLocal()
,
respectively.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines