Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upConstruct URLSearchParams from array or object #22555
Conversation
highfive
commented
Dec 25, 2018
|
Heads up! This PR modifies the following files:
|
| [Construct with object with two keys] | ||
| expected: FAIL | ||
|
|
||
| [Construct with object with NULL, non-ASCII, and surrogate keys] |
This comment has been minimized.
This comment has been minimized.
CYBAI
Dec 25, 2018
•
Author
Collaborator
I've observed the Construct with object with two keys case and Construct with object with NULL, non-ASCII, and surrogate keys case will be PASSed intermittently in my local.
I belive the root cause would be related to the MozMap type is HashMap which is an unordered collection so we might get result in different order when using map
Per the spec for WebIDL record, it should be ordered maps. Maybe we need to make the map inside MozMap to be BTreeMap instead?
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
jdm
Dec 25, 2018
Member
I thought no it would be valid to change to BTreeMap now, since full record support is much more complex.
This comment has been minimized.
This comment has been minimized.
|
@bors-servo try=wpt |
Construct URLSearchParams from array or object --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22554 - [x] There are tests in `url/urlsearchparams-constructor.any.js` for these changes <!-- 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/22555) <!-- Reviewable:end -->
|
|
|
@bors-servo try=wpt |
Construct URLSearchParams from array or object --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22554 - [x] There are tests in `url/urlsearchparams-constructor.any.js` for these changes <!-- 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/22555) <!-- Reviewable:end -->
|
|
|
That failure is #13480. |
|
@bors-servo r+ |
|
|
|
|
|
It's a bit sad to mark the test as intermittent when this PR is fixing a bunch of its tests. Why not change the MozMap implementation in this PR instead? |
|
@jdm I wondered if it's not good to change MozMap in this PR because I thought it's not related to URLSearchParams itself. But, I also start to think that it should be fine to fix it in this PR and maybe I can separate them into different commits to say why we need to change the MozMap. So, I'm working on fixing the MozMap! Thanks for telling me that you think it's fine to fix MozMap in this PR :) |
|
@jdm With testing to use The reason why we'll fail After doing more investigation, maybe what we want for the Would you think it's fine to install that crate? |
|
@bors-servo try=wpt
Sorry again and yeah, I should tryt to avoid introducing a known intermittent in the future, thanks! |
Construct URLSearchParams from array or object --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22554, fix #22556 and also fix #22557 - [x] There are tests in `url/urlsearchparams-constructor.any.js` for these changes <!-- 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/22555) <!-- Reviewable:end -->
|
|
|
@bors-servo try=wpt
|
Construct URLSearchParams from array or object --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22554, fix #22556 and also fix #22557 - [x] There are tests in `url/urlsearchparams-constructor.any.js` for these changes <!-- 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/22555) <!-- Reviewable:end -->
|
|
|
@bors-servo r+ |
|
|
Construct URLSearchParams from array or object --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #22554, fix #22556 and also fix #22557 - [x] There are tests in `url/urlsearchparams-constructor.any.js` for these changes <!-- 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/22555) <!-- Reviewable:end -->
|
|
CYBAI commentedDec 25, 2018
•
edited
./mach build -ddoes not report any errors./mach test-tidydoes not report any errorsurl/urlsearchparams-constructor.any.jsfor these changesThis change is