You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* sheepishly starting object-sync example
* add hello function to object example...not compiling
* add object tests, fix static issue and remove hello function collision
* add some questions
* add constructor error handling, remove unneeded NAN_MODULE_INIT, and add plenty of contextual comments around init
* attempt adding a constructor that sets member var
* use direct initialization
* unwrap the object to access name_
* add test for custom constructor
* match sync examples
* name the persistant creator 'create_once' to avoid name clash with c++ constructor term
* Add HandleScope where needed / comments for when not needed explicitly
create_once().Reset(fn); // calls the static &HelloObject::constructor method above. This ensures the instructions in this Init function are retained in memory even after this code block ends.
0 commit comments