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

Servo seems to be allowing expandos/defined properties to be set in cases that incorrectly shadow indexed/named setters #25448

Open
pshaughn opened this issue Jan 6, 2020 · 0 comments

Comments

@pshaughn
Copy link
Member

@pshaughn pshaughn commented Jan 6, 2020

After applying #25446, html/dom/elements/global-attributes/dataset-binding.window.html and dom/collections/HTMLCollection-supported-property-indices.html pass some subtests they previously failed, but also still have failures.

html/dom/elements/global-attributes/dataset-binding.window.html calls defineProperty(DOMStringMap.prototype, ...) and expects the "set" method of the new property to never be invoked.

dom/collections/HTMLCollection-supported-property-indices.html sets and deletes some indexed properties on the HTMLCollection returned by document.getElementsByTagName, and it expects exceptions in some cases when doing so (in some cases, only in "use strict").

These seem like things that IDL codegen is supposed to catch before reaching class-specific manual code. Indexed and named setters go through different codepaths, but they're parallel enough that looking at the two issues side-by-side might help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.