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

fix JS IndexedGetter and NamedSetter bindings generation #13333

Merged
merged 1 commit into from Sep 22, 2016

Conversation

@splav
Copy link
Contributor

splav commented Sep 20, 2016

Fix JS IndexedGetter and NamedSetter bindings generation.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #13327 (github issue number if applicable).
  • There are tests for these changes OR
  • These changes do not require tests because the test will be in PR for #13129 as currently these setters are used by nobody.

This change is Reviewable

@highfive
Copy link

highfive commented Sep 20, 2016

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/dom/bindings/codegen/CodegenRust.py
@highfive
Copy link

highfive commented Sep 20, 2016

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@splav
Copy link
Contributor Author

splav commented Sep 20, 2016

The related issue is #5876
There is a link to relevant Gecko code in the bug discussion by @jdm: https://dxr.mozilla.org/mozilla-central/rev/b1156b0eb96fcb49966b20e5fcf6a01f634ea2ee/dom/bindings/Codegen.py#11045

"}\n") % (self.descriptor.name, self.descriptor.name)
" if result.is_some() {\n"
" return (*opresult).failNoNamedSetter();\n"
" }\n"

This comment has been minimized.

@Ms2ger

Ms2ger Sep 20, 2016

Contributor

You seem to have removed a return in the not-found case; is that intentional?

This comment has been minimized.

@splav

splav Sep 20, 2016

Author Contributor

@Ms2ger it what is done by gecko from the link I've provided.

@jdm
Copy link
Member

jdm commented Sep 21, 2016

@bors-servo: r+
Thanks for investigating and fixing this!

@bors-servo
Copy link
Contributor

bors-servo commented Sep 21, 2016

📌 Commit 3488d15 has been approved by jdm

@highfive highfive assigned jdm and unassigned SimonSapin Sep 21, 2016
@bors-servo
Copy link
Contributor

bors-servo commented Sep 22, 2016

Testing commit 3488d15 with merge 73b2963...

bors-servo added a commit that referenced this pull request Sep 22, 2016
fix JS IndexedGetter and NamedSetter bindings generation

<!-- Please describe your changes on the following line: -->
Fix JS IndexedGetter and NamedSetter bindings generation.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #13327 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because the test will be in PR for #13129 as currently these setters are used by nobody.

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13333)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Sep 22, 2016

@bors-servo bors-servo merged commit 3488d15 into servo:master Sep 22, 2016
2 of 3 checks passed
2 of 3 checks passed
continuous-integration/appveyor/pr AppVeyor build failed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@splav splav deleted the splav:JS-setters-fix#13327 branch Sep 22, 2016
splav added a commit to splav/servo that referenced this pull request Sep 22, 2016
splav added a commit to splav/servo that referenced this pull request Sep 22, 2016
splav added a commit to splav/servo that referenced this pull request Sep 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

6 participants
You can’t perform that action at this time.