From fa29738376c0b7814b2fbd178a890837b0440b6c Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Mon, 26 Jan 2015 08:06:40 -0500 Subject: [PATCH] in js they are 'Error's not 'Exceptions's --- test/fixture/test1.js | 2 +- test/fixture/test2.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/fixture/test1.js b/test/fixture/test1.js index fe3518b..9ed220d 100644 --- a/test/fixture/test1.js +++ b/test/fixture/test1.js @@ -6,7 +6,7 @@ * func1 */ function func1(arg1, arg2){ - throw new Exception('hello'); + throw new Error('hello'); return 'string'; } diff --git a/test/fixture/test2.js b/test/fixture/test2.js index fffe8b4..63bed6b 100644 --- a/test/fixture/test2.js +++ b/test/fixture/test2.js @@ -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){