Browse Source

PasswordException in closure

Jakob Miland 13 years ago
parent
commit
b655b414d8
  1. 5
      src/util.js

5
src/util.js

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

Loading…
Cancel
Save