Browse Source

in js they are 'Error's not 'Exceptions's

formatter
Brett Langdon 11 years ago
parent
commit
fa29738376
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      test/fixture/test1.js
  2. +1
    -1
      test/fixture/test2.js

+ 1
- 1
test/fixture/test1.js View File

@ -6,7 +6,7 @@
* func1
*/
function func1(arg1, arg2){
throw new Exception('hello');
throw new Error('hello');
return 'string';
}


+ 1
- 1
test/fixture/test2.js View File

@ -3,7 +3,7 @@
*/
function some(cool, stuff){
if(typeof cool === undefined || typeof stuff === undefined){
throw new Exception('must provide "cool" or "stuff" parameter');
throw new Error('must provide "cool" or "stuff" parameter');
}
if(cool > stuff){


Loading…
Cancel
Save