Closed Bug 1303936 Opened 8 years ago Closed 8 years ago

decodeURIComponent doesn't mention it could throw URIError exception

Categories

(Developer Documentation Graveyard :: JavaScript, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ruturaj, Unassigned)

Details

Steps to reproduce:
try {
  a= decodeURIComponent("%E0%A4%A");
} catch(e) {
  console.error(e);
}

Expected: Clear documentation that decodeURIComponent [1] could throw a URIError [2] exception.

[1] https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent
[2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/URIError
Thanks Florian!
You need to log in before you can comment on or make changes to this bug.