Skip to content

Commit

Permalink
Make the DOMException constructor accept a name
Browse files Browse the repository at this point in the history
It will automatically set the code from the name (if it is one of the legacy names that have codes).

It now just calls `super(message)` to initialize the message and all of the internal error-related state.

The "creating exceptions" section was refactored to work in terms of the new, fully-functional constructor.

Closes https://www.w3.org/Bugs/Public/show_bug.cgi?id=27062.
  • Loading branch information
domenic committed Apr 13, 2015
1 parent 995bb12 commit 137856d
Show file tree
Hide file tree
Showing 2 changed files with 67 additions and 111 deletions.
Loading

0 comments on commit 137856d

Please sign in to comment.