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
/
cyclic
/
program.js
9 lines
(7 loc)
•
221 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
var
test
=
require(
"test"
);
var
a
=
require(
"./a"
);
var
b
=
require(
"./b"
); test.
assert
(a.a,
"a exists"
); test.
assert
(b.b,
"b exists"
); test.
assert
(a.a().b === b.b,
"a gets b"
); test.
assert
(b.b().a === a.a,
"b gets a"
);