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

Multiple exposes of object to script with different types #12

Open
quyse opened this issue Oct 7, 2013 · 1 comment
Open

Multiple exposes of object to script with different types #12

quyse opened this issue Oct 7, 2013 · 1 comment
Assignees

Comments

@quyse
Copy link
Owner

quyse commented Oct 7, 2013

For now objects are exposed to script with their declared "return type", and corresponding script object is cached while script is holding a reference to it. But if an object would exposed to script second time with another return type (subtype or supertype), it gonna be exposed as old cached script object with wrong method table and stuff.

To fix that we have to cache script objects taking into account the exposed type, and make several script objects - one for each exposed type of object. Note that reclaiming object should clear all types of object at once.

@ghost ghost assigned quyse Oct 7, 2013
@quyse
Copy link
Owner Author

quyse commented Oct 7, 2013

Fixed for V8 integration. Remains for Lua.

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

No branches or pull requests

1 participant