Sign in
apache
/
cordova-js
/
a61952ffbdd4d322bb67d90b214e3eca842cb96b
/
.
/
tasks
/
vendor
/
commonjs-tests
/
modules
/
1.0
/
missing
/
program.js
blob: c6b03aa28f67ae52036aefbb91605402a209c4a1 [
file
] [
log
] [
blame
]
var
test
=
require
(
'test'
);
try
{
require
(
'bogus'
);
test
.
print
(
'FAIL require throws error when module missing'
,
'fail'
);
}
catch
(
exception
)
{
test
.
print
(
'PASS require throws error when module missing'
,
'pass'
);
}
test
.
print
(
'DONE'
,
'info'
);