-
Notifications
You must be signed in to change notification settings - Fork 482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DurationFormat Coverage #3592
DurationFormat Coverage #3592
Conversation
…romulocintra/test262 into update-duration-format-coverage-methods
|
||
assert.sameValue(typeof format, "function"); | ||
|
||
assert.throws(TypeError, () => format.call(undefined), "undefined"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are gonna throw anyway even if there's no brand check, because you're not passing a valid object as the duration argument. Compare 9762bc9.
test/intl402/DurationFormat/prototype/format/invalid-arguments-throws.js
Show resolved
Hide resolved
test/intl402/DurationFormat/prototype/format/throw-invoked-as-func.js
Outdated
Show resolved
Hide resolved
|
||
assert.sameValue(typeof formatToParts, "function"); | ||
|
||
assert.throws(TypeError, () => formatToParts.call(undefined), "undefined"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as with format
test/intl402/DurationFormat/prototype/formatToParts/invalid-arguments-throws.js
Show resolved
Hide resolved
test/intl402/DurationFormat/prototype/formatToParts/not-a-constructor.js
Outdated
Show resolved
Hide resolved
test/intl402/DurationFormat/prototype/formatToParts/not-a-constructor.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Ms2ger <[email protected]>
Co-authored-by: Ms2ger <[email protected]>
…func.js Co-authored-by: Ms2ger <[email protected]>
…tructor.js Co-authored-by: Ms2ger <[email protected]>
…tructor.js Co-authored-by: Ms2ger <[email protected]>
Tests |
Thank you for catching this one @iamstolis - fixed in #3605 |
@romulocintra, thank you for an extremely fast fix! |
Update Coverage Intl.DurationFormat #3305