add check for "line" throws RangeError

This commit is contained in:
Frank Yung-Fong Tang 2019-01-28 19:02:29 -08:00 committed by Rick Waldron
parent 619f7cdad1
commit c390306921
1 changed files with 2 additions and 0 deletions

View File

@ -25,3 +25,5 @@ for (const [granularity, expected] of validOptions) {
const resolvedOptions = segmenter.resolvedOptions();
assert.sameValue(resolvedOptions.granularity, expected);
}
assert.throws(RangeError, () => new Intl.Segmenter([], {granularity: "line"});