This website works better with JavaScript.
Home
Explore
Help
Sign In
brettlangdon
/
docast
mirror of
https://github.com/brettlangdon/docast.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Projects
0
Releases
2
Wiki
Activity
Browse Source
in js they are 'Error's not 'Exceptions's
formatter
Brett Langdon
11 years ago
parent
9e69ee9cf5
commit
fa29738376
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
test/fixture/test1.js
+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
)
{
Write
Preview
Loading…
Cancel
Save