forked from web-platform-tests/wpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
URLPattern: Set unmatched optional groups to undefined instead of ''.
This addresses the issues raised in: whatwg/urlpattern#162 The main changes in this CL are: 1. The webidl is modified to allow passed back undefined. I'm told real webidl should support `(USVString or undefined)` here, but our webidl compiler does not support that. So we use `any` instead. 2. We must examine if the WTF::String is null or not before populating the returned array. If its null, then we convert to undefined instead. Bug: 1292699 Change-Id: I27a0be2567bb9ce4592ca15a5216fd5a58bdbf17 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3428631 Reviewed-by: Jeremy Roman <[email protected]> Commit-Queue: Ben Kelly <[email protected]> Cr-Commit-Position: refs/heads/main@{#968611}
- Loading branch information
1 parent
9c46444
commit 8b06d4f
Showing
2 changed files
with
28 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters