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

Support evaluateName for all variable references #1924

Open
hediet opened this issue Jan 24, 2024 · 0 comments
Open

Support evaluateName for all variable references #1924

hediet opened this issue Jan 24, 2024 · 0 comments
Assignees
Labels
feature-request Request for new features or functionality

Comments

@hediet
Copy link
Member

hediet commented Jan 24, 2024

Sometimes, there can be anonymous variable references, like this:

image

It would be nice if these variable references also have an evaluateName that can act as a js variable name for evaluate calls.

This evaluateName should be safe to use in expression, e.g. myFunction(${myVar.evaluateName}).
This means, before evaluating expressions, these evaluateNames have to be pre-processed.
If you use replaceAll, make sure the evaluateName is long enough (256 bits should be fine) to avoid any accidental replacements.

To be consistent, the evaluateName only works for the given frame id, so you cannot mix variables from different frame ids in one expression.

CDP has these things that might be helpful:

@hediet hediet added the feature-request Request for new features or functionality label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

2 participants