sync with duration-format PR130 (#3752)

https://github.com/tc39/proposal-intl-duration-format/pull/130
This commit is contained in:
Frank Yung-Fong Tang 2022-12-14 07:08:52 -08:00 committed by GitHub
parent e6c6460a5b
commit dac6956348
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -25,4 +25,4 @@ assert.throws(TypeError, () => { df.format({}) }, "plain object");
assert.throws(TypeError, () => { df.format({ year: 1 }) }, "unsuported property");
assert.throws(TypeError, () => { df.format({ years: undefined }) }, "supported property set undefined");
assert.throws(TypeError, () => { df.format(Symbol())}, "symbol");
assert.throws(TypeError, () => { df.format("bad string")}, "bad string");
assert.throws(RangeError, () => { df.format("bad string")}, "bad string");

View File

@ -25,4 +25,4 @@ assert.throws(TypeError, () => { df.formatToParts({}) }, "plain object");
assert.throws(TypeError, () => { df.formatToParts({ year: 1 }) }, "unsuported property");
assert.throws(TypeError, () => { df.formatToParts({ years: undefined }) }, "supported property set undefined");
assert.throws(TypeError, () => { df.formatToParts(Symbol())}, "symbol");
assert.throws(TypeError, () => { df.formatToParts("bad string")}, "bad string");
assert.throws(RangeError, () => { df.formatToParts("bad string")}, "bad string");