Skip to content

Commit

Permalink
adding comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Dec 17, 2024
1 parent ccc8ae3 commit bfc1ad8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/wpt_urlpattern_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ TEST(wpt_urlpattern_tests, urlpattern_test_data) {
}

ondemand::object main_object = element.get_object();
// If we have a key with 'expected_obj' and the value is 'error', then
// we expect the pattern to be invalid. There should be a key with
// 'pattern' and the value should be an array.
std::string_view expected_obj;
if (!main_object["expected_obj"].get_string().get(expected_obj) &&
expected_obj == "error") {
Expand Down

0 comments on commit bfc1ad8

Please sign in to comment.