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

Rewrite TextEncoder::Encode to use typed array API. Fixes #15504 #15510

Merged
merged 1 commit into from Feb 12, 2017

Conversation

absoludity
Copy link
Contributor

@absoludity absoludity commented Feb 11, 2017

Rewrite TextEncoder::Encode to use typed array API. Fixes #15504


  • There are tests for these changes OR
  • These changes do not require tests because the existing tests ensure the behaviour has not changed - ./mach test-wpt tests/wpt/web-platform-tests/encoding

This change is Reviewable

@highfive
Copy link

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @SimonSapin (or someone else) soon.

@highfive
Copy link

Heads up! This PR modifies the following files:

  • @fitzgen: components/script/dom/bindings/conversions.rs, components/script/dom/textencoder.rs
  • @KiChjang: components/script/dom/bindings/conversions.rs, components/script/dom/textencoder.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 11, 2017
@highfive
Copy link

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!

@SimonSapin
Copy link
Member

This uses Uint8Array while #15504 mentions ArrayBuffer. I don’t know these API enough to tell if this is significant. @jdm, are they equivalent?

@jdm
Copy link
Member

jdm commented Feb 11, 2017

The actual spec says to return a Uint8Array, so this is correct.

@bors-servo
Copy link
Contributor

☔ The latest upstream changes (presumably #15515) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Feb 12, 2017
@absoludity
Copy link
Contributor Author

I've rebased and resolved. Not sure how to remove the S-needs-rebase label.

@jdm jdm removed the S-needs-rebase There are merge conflict errors. label Feb 12, 2017
@SimonSapin
Copy link
Member

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit bb7833a has been approved by SimonSapin

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Feb 12, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit bb7833a with merge a656782...

bors-servo pushed a commit that referenced this pull request Feb 12, 2017
Rewrite TextEncoder::Encode to use typed array API. Fixes #15504

<!-- Please describe your changes on the following line: -->
Rewrite TextEncoder::Encode to use typed array API. Fixes #15504

---
<!-- 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 #15504 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because the existing tests ensure the behaviour has not changed - `./mach test-wpt tests/wpt/web-platform-tests/encoding`

<!-- 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/15510)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, mac-rel-wpt2, windows-gnu-dev, windows-msvc-dev
Approved by: SimonSapin
Pushing a656782 to master...

@bors-servo bors-servo merged commit bb7833a into servo:master Feb 12, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Feb 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rewrite TextEncoder::Encode to use typed array API
5 participants