minor
This commit is contained in:
parent
e76364de01
commit
bc9117e70f
10 changed files with 15 additions and 15 deletions
|
@ -47,13 +47,13 @@ class ValidationError extends Error {
|
|||
}
|
||||
|
||||
function test() {
|
||||
throw new ValidationError("Wops!");
|
||||
throw new ValidationError("Woops!");
|
||||
}
|
||||
|
||||
try {
|
||||
test();
|
||||
} catch(err) {
|
||||
alert(err.message); // Wops!
|
||||
alert(err.message); // Woops!
|
||||
alert(err.name); // ValidationError
|
||||
alert(err.stack); // a list of nested calls with line numbers for each
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue