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

Variables that are DOM elements do not have their fields attached in the VMFrame #2183

Open
DanTup opened this issue Aug 7, 2023 · 0 comments

Comments

@DanTup
Copy link
Contributor

DanTup commented Aug 7, 2023

Moving this from Dart-Code/Dart-Code#4673 as it feels like a DWDS issue.

When hitting a breakpoint and looking at local variables (which come from the topFrame), variables that are DOM elements do not contain any fields like a standard class would.

When we walk up the class hierarchy looking for getters, we also find no getters - but I do see fields on the superclasses:

<== {
	"jsonrpc": "2.0",
	"result": {
		// ...
		"fields": [
			{
				"type": "@Field",
				"id": "742",
				"name": "mouseWheelEvent",
				// ...
			},

In the VM, fields from superclasses show up on the variable, so this seems like a difference. I think if these fields are really fields they should be on the variable itself, or if they are considered getters they should be marked as such (instead of fields).

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