blob: 87646316ccc8cbc702f60e24a4ceaf1097b0e6d0 [file] [log] [blame]
// 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);
};