mirror of
https://github.com/tc39/test262.git
synced 2025-07-27 07:54:41 +02:00
add check for "line" throws RangeError
This commit is contained in:
parent
619f7cdad1
commit
c390306921
@ -25,3 +25,5 @@ for (const [granularity, expected] of validOptions) {
|
|||||||
const resolvedOptions = segmenter.resolvedOptions();
|
const resolvedOptions = segmenter.resolvedOptions();
|
||||||
assert.sameValue(resolvedOptions.granularity, expected);
|
assert.sameValue(resolvedOptions.granularity, expected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert.throws(RangeError, () => new Intl.Segmenter([], {granularity: "line"});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user