Skip to content

n-api: clean up binding creation

  • Remove dead code for GetterCallbackWrapper and SetterCallbackWrapper.
  • Factor out creation of new v8::Functions.
  • Factor out creation of new v8::FunctionTemplates.
  • Turn CallbackBundle into a class, internalizing creation of new instances and garbage collection.

Signed-off-by: @gabrielschulhof

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading