PasswordException in closure

This commit is contained in:
Jakob Miland 2012-05-17 21:34:39 +02:00
parent 176e534a26
commit b655b414d8

View File

@ -58,13 +58,18 @@ function shadow(obj, prop, value) {
return value;
}
function PasswordException(msg, code) {
this.name = 'PasswordException';
this.message = msg;
this.code = code;
}
PasswordException.prototype = new Error();
PasswordException.constructor = PasswordException;
var PasswordException = (function PasswordExceptionClosure() {
function PasswordException(msg, code) {
this.name = 'PasswordException';
this.message = msg;
this.code = code;
}
PasswordException.prototype = new Error();
PasswordException.constructor = PasswordException;
return PasswordException;
})();
function bytesToString(bytes) {
var str = '';