n-api: clean up binding creation
- Remove dead code for
GetterCallbackWrapper
andSetterCallbackWrapper
. - Factor out creation of new
v8::Function
s. - Factor out creation of new
v8::FunctionTemplate
s. - Turn
CallbackBundle
into a class, internalizing creation of new instances and garbage collection.
Signed-off-by: @gabrielschulhof
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines