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

getSync on Reference to function #427

Open
mifopen opened this issue Nov 21, 2023 · 1 comment
Open

getSync on Reference to function #427

mifopen opened this issue Nov 21, 2023 · 1 comment

Comments

@mifopen
Copy link

mifopen commented Nov 21, 2023

I'm trying to return a function wrapped into Reference from an isolate and then access some custom-defined field with getSync. But this line of code prevents this

throw RuntimeTypeError("Reference is not an object");

Is it some strong requirement that is impossible to work around or just something not implemented?
I thought that it's legal if I'm not trying to deref function and just access some field on it.

@laverdet
Copy link
Owner

Seems like an oversight. We have to be careful in that place to avoid invoking accessor functions which may jump into user code without a timeout.

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

2 participants