Skip to content

Commit 49b6fa5

Browse files
Merge pull request #439 from w3c/credit-nan
Credit needs to be finite
2 parents 3e1a1d3 + 731322e commit 49b6fa5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

api.bs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1961,7 +1961,10 @@ To <dfn>validate {{AttributionConversionOptions}}</dfn> |options|:
19611961
throw a {{RangeError}}.
19621962
1. Let |credit| be |options|.{{AttributionConversionOptions/credit}} if it [=map/exists=], «1» otherwise.
19631963
1. If |credit| [=list/is empty=], throw a {{RangeError}}.
1964-
1. If any of the [=list/items=] of |credit| are less than or equal to 0, throw a {{RangeError}}.
1964+
1. If any of the [=list/items=] of |credit| are
1965+
not [finite](https://tc39.es/ecma262/multipage/numbers-and-dates.html#sec-number.isfinite)
1966+
or less than or equal to 0,
1967+
throw a {{RangeError}}.
19651968
1. If the [=list/size=] of |credit| exceeds the [=implementation-defined=]
19661969
[=maximum number of credit values=], throw a {{RangeError}}.
19671970
1. Let |lookback| be |options|.{{AttributionConversionOptions/lookbackDays}} [=days=]

0 commit comments

Comments
 (0)