Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…non-String module identifiers.
  • Loading branch information...
commit 07f00e872002e480a12da76a6c9b0a41574a0980 1 parent 100d087
Kris Kowal authored February 14, 2010

Showing 1 changed file with 1 addition and 2 deletions. Show diff stats Hide diff stats

  1. 3  lib/loader.js
3  lib/loader.js
@@ -106,8 +106,7 @@ exports.Loader = function (options) {
106 106
 };
107 107
 
108 108
 exports.resolve = function (id, baseId) {
109  
-    if (typeof id != "string")
110  
-        throw new Error("module id '" + id + "' is not a String");
  109
+    id = String(id);
111 110
     if (id.charAt(0) == ".") {
112 111
         id = file.dirname(baseId) + "/" + id;
113 112
     }

0 notes on commit 07f00e8

Please sign in to comment.
Something went wrong with that request. Please try again.