Repository navigation
Creates empty string when passed null - #7885
Conversation
|
This is not the right fix, cf what Ms2ger says in the original issue. |
|
@jimberlage thank you, this is the correct fix. However, I would expect a corresponding change in |
|
@Ms2ger that's correct. Looks like I forgot to push it. |
|
Thank you! You'll also need to update the test expectations for the tests that now pass. Running ./mach test-wpt --log-raw /tmp/log html/dom/interfaces.html websockets/
./mach update-wpt /tmp/logshould create a new commit that does that. |
|
I'll work on fixing this branch. Seems /tmp/log contains logging statements from running the tests with my bufferedAmount implementation. Those should be removed. |
|
There, now it contains the changes from building off commit 0bb881b. |
|
The diff still shows a lot of changes to tests for bufferedAmount :/ |
|
I created a new branch in my forked repo based on 0bb881b, https://github.com/jimberlage/servo/tree/7858/null-message-new. The tests there appear to be correct, at least when comparing against servo:master on github. The easiest thing may be for me to just open a new PR against that correct branch. Sound reasonable? |
|
Either that or force push that branch to this one, thus overwriting this one. |
9fc1dd4 to
5be05ea
Compare
|
Finally. My syntax for force pushing was incorrect. |
|
Please also squash all the commits, and use a commit message that describes the change. Maybe "Require the argument to WebSocket#send() (fixes #7858)." |
|
r+ with that |
5be05ea to
0ffd2f6
Compare
|
@bors-servo r+ |
|
📌 Commit 0ffd2f6 has been approved by |
Creates empty string when passed null This should fix #7858. An empty `USVString` is now used when `data` is `None`. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7885) <!-- Reviewable:end -->
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt |
This should fix #7858. An empty
USVStringis now used whendataisNone.