mirror of https://github.com/tc39/test262.git
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();
|
||||
assert.sameValue(resolvedOptions.granularity, expected);
|
||||
}
|
||||
|
||||
assert.throws(RangeError, () => new Intl.Segmenter([], {granularity: "line"});
|
||||
|
|
Loading…
Reference in New Issue