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

Is there a way to dynamically resolve attributes? #200

Open
DarkoreXOR opened this issue Nov 23, 2019 · 1 comment
Open

Is there a way to dynamically resolve attributes? #200

DarkoreXOR opened this issue Nov 23, 2019 · 1 comment
Labels

Comments

@DarkoreXOR
Copy link

I need to catch an event when the script tries to access the attribute of JSObject, but the attribute does not exist yet and create it in this event.

@nilproject
Copy link
Owner

No, at this moment this is impossible. Engine reads attributes in many places of code and should do it as fast as possible. If this is necessary, you can patch JSValue._attributes, replace it with property (so, in this way JSValue.Attributes will be "property for property") and handle this event.

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

No branches or pull requests

2 participants