mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
b6fe4aec50
There is one major API change in the refactor: filename extensions are now required when requiring or including modules. Added extra test to test-module-loading.js.
12 lines
307 B
JavaScript
12 lines
307 B
JavaScript
include("mjsunit.js");
|
|
|
|
function onLoad () {
|
|
var dirname = node.path.dirname(__filename);
|
|
var fixtures = node.path.join(dirname, "fixtures");
|
|
var filename = node.path.join(fixtures, "does_not_exist.txt");
|
|
|
|
node.fs.cat(filename, "raw", function (status, data) {
|
|
assertTrue(status != 0);
|
|
});
|
|
};
|