ffa0d0a018c0 — Laurens Holst 9 years ago
checkTypes: Add NaN check.
1 files changed, 1 insertions(+), 1 deletions(-)

M src/grauw-lib.js
M src/grauw-lib.js +1 -1
@@ 47,7 47,7 @@ 
 		for (var i = 1; i < arguments.length; i++) {
 			var type = arguments[i], arg = args[i - 1];
 			if (!(type instanceof Array && (type = type[0]) && arg == null) &&
-					!(typeof type == "string" && typeof arg == type) &&
+					!(typeof type == "string" && typeof arg == type && arg == arg) &&
 					!(type instanceof Function && arg instanceof type)) {
 				if (typeof type != "string" && !(type instanceof Function))
 					throw new Error("Unsupported type " + type + ".");