Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dispatch and Listen in javascript #43

Open
projectitis opened this issue Sep 4, 2021 · 1 comment
Open

Dispatch and Listen in javascript #43

projectitis opened this issue Sep 4, 2021 · 1 comment

Comments

@projectitis
Copy link
Contributor

Callbacks (Dispatcher) is failing in javascript. Investigate communication between c++/js and resolve. May need specific solutions for c++ vs JS implementations.

@projectitis
Copy link
Contributor Author

There are two known issues:

  1. Event properties are being interpreted as the incorrect type. It looks like this is because of the virtual destructor (but not sure how). See Binding a callback (std::function) causes runtime error ftk/quickjspp#31 (comment)

  2. An exception occurs when the event is added to the std::list in Dispatcher::listen. It looks like this is because the pointer to the list changes between ctor and calling listen (once again, no idea why).

Both of these issues only occur when calling listen via javascript, and work perfectly fine in pure c++.

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

No branches or pull requests

1 participant