From 5baf9006e42076aac9850f4e477592e512471fa7 Mon Sep 17 00:00:00 2001 From: Yoshisato Yanagisawa Date: Fri, 16 Feb 2024 04:42:30 +0000 Subject: [PATCH] Make the create algorithm to avoid breaking the existing callers. --- spec.bs | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/spec.bs b/spec.bs index 8b5e7c4..339a277 100644 --- a/spec.bs +++ b/spec.bs @@ -338,17 +338,21 @@ Each [=URL Pattern=] has an associated hash component,
The new URLPattern(|input|, |baseURL|, |options|) constructor steps are: - 1. Run [=initialize=] given [=this=]'s associated [=URL Pattern=], |input|, |baseURL|, and |options|. + 1. Run [=initialize=] given [=this=], |input|, |baseURL|, and |options|.
The new URLPattern(|input|, |options|) constructor steps are: - 1. Run [=initialize=] given [=this=]'s associated [=URL Pattern=], |input|, null, and |options|. + 1. Run [=initialize=] given [=this=], |input|, null, and |options|.
- To initialize a [=URL Pattern=] given a [=URL Pattern=] |this|, {{URLPatternInput}} |input|, string or null |baseURL|, and {{URLPatternOptions}} |options|: + To initialize a {{URLPattern}} given a {{URLPattern}} |this|, {{URLPatternInput}} |input|, string or null |baseURL|, and {{URLPatternOptions}} |options|, Run [=create=] given |this|'s associated [=URL Pattern=], |input|, |baseURL|, and |options|. +
+ +
+ To create a [=URL Pattern=] given a [=URL Pattern=] |this|, {{URLPatternInput}} |input|, string or null |baseURL|, and {{URLPatternOptions}} |options|: 1. Let |init| be null. 1. If |input| is a [=scalar value string=] then: