better error throw

This commit is contained in:
brianc 2010-09-28 23:31:19 -05:00
parent 52e53edf63
commit 94edc2583e

View File

@ -53,7 +53,7 @@ var Parser = {
case UTF8.R:
return Parser.parseR(buffer, offset);
default:
throw "Unsupported message id"
throw new Error("Unsupported message ID");
}
},
parseR: function(buffer, offset) {