web-platform-tests / web-platform-tests/wpt

WebIDL tests assert error messages are "", if they are defined on the prototype

Open
#2,000 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

webidl
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.