web-platform-tests / web-platform-tests/wpt
WebIDL tests assert error messages are "", if they are defined on the prototype
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 6.2k
- Forks
- 3.9k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 586
Description
exceptions.html:77 has:
if (exception.hasOwnProperty("message")) {
...
} else {
// Error.prototype.message
assert_equals(exception.message, "");
}
Blink is failing that assertion, but I think the assertion may be wrong or out of date. Could we change the assertion or add a link to the relevant spec, and I will change Blink? I can't find anything that specifies what this text should be nor that it should be an empty string.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at WebIDL/ecmascript-binding/es-exceptions/exceptions.html:77 and inspect the existing prototype-message assertion. Check the relevant WebIDL or ECMAScript specification text to determine whether an empty message is required; then update the assertion or add the specification link as appropriate. Run the affected WebIDL exceptions test to verify the result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- testing-qa, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100