Commit f777bd81 by Wes Freeman

Adding BinData subtype checking.

parent 6d58bd8e
......@@ -72,7 +72,14 @@ varietyTypeOf = function(thing) {
return "ObjectId";
}
else if (thing instanceof BinData) {
return "BinData";
var binDataTypes = {};
binDataTypes[0x00] = "generic";
binDataTypes[0x01] = "function";
binDataTypes[0x02] = "old";
binDataTypes[0x03] = "UUID";
binDataTypes[0x05] = "MD5";
binDataTypes[0x80] = "user";
return "BinData-" + binDataTypes[thing.subtype()];
}
else {
return "Object";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment