Permalink
Browse files

Shift more in keeping with the spirit of the language with regard to …

…non-String module identifiers.
  • Loading branch information...
1 parent 100d087 commit 07f00e872002e480a12da76a6c9b0a41574a0980 @kriskowal kriskowal committed Feb 14, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/loader.js
View
@@ -106,8 +106,7 @@ exports.Loader = function (options) {
};
exports.resolve = function (id, baseId) {
- if (typeof id != "string")
- throw new Error("module id '" + id + "' is not a String");
+ id = String(id);
if (id.charAt(0) == ".") {
id = file.dirname(baseId) + "/" + id;
}

0 comments on commit 07f00e8

Please sign in to comment.