UNPKG
system
Version:
latest (2.0.1)
2.0.1
2.0.0
1.3.0
1.2.1
1.2.0
1.1.1
1.1.0
1.0.6
1.0.5
1.0.4
1.0.2
1.0.1
1.0.0
0.1.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
Flexible module and resource system
github.com/gutentags/system
gutentags/system
system
/
test
/
missing
/
program.js
8 lines
(7 loc)
•
215 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
var
test
=
require(
"test"
);
try
{ require(
"bogus"
); test.
assert
(
false
,
"require throws error when module missing"
); }
catch
(exception) { test.
assert
(
true
,
"require throws error when module missing"
); }