| // Copyright 2020 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| typedef (USVString or URLPatternInit) URLPatternInput; |
| |
| // https://wicg.github.io/urlpattern/ |
| [ |
| SecureContext, |
| Exposed=(Window,Worker), |
| RuntimeEnabled=URLPattern |
| ] interface URLPattern { |
| [RaisesException] constructor(URLPatternInit init); |
| [RaisesException] boolean test(URLPatternInput input); |
| [RaisesException] URLPatternResult exec(URLPatternInput input); |
| }; |