Skip to content
This repository has been archived by the owner on Jul 12, 2018. It is now read-only.

Run JS code to build NS from C++ hooks #17

Open
magcius opened this issue Jan 11, 2016 · 0 comments
Open

Run JS code to build NS from C++ hooks #17

magcius opened this issue Jan 11, 2016 · 0 comments

Comments

@magcius
Copy link
Collaborator

magcius commented Jan 11, 2016

When importing an object (or other resource) by pointer, we simply get the class template and construct the object:

https://github.com/WebReflection/node-gtk/blob/master/src/gobject.cc#L243-L251

We need to make sure that if something returns an object that hasn't been imported, we run everything required to build up that class, install methods, etc.

This should also be the class if an object inherits from a parent that's also unimported.

That means we should rewrite this code to call a JS hook. Perhaps we install one when the JS code calls Bootstrap.

https://github.com/WebReflection/node-gtk/blob/master/src/gobject.cc#L163-L182

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant