mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
PasswordException in closure
This commit is contained in:
parent
176e534a26
commit
b655b414d8
1 changed files with 12 additions and 7 deletions
13
src/util.js
13
src/util.js
|
@ -58,13 +58,18 @@ function shadow(obj, prop, value) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
function PasswordException(msg, code) {
|
var PasswordException = (function PasswordExceptionClosure() {
|
||||||
|
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.constructor = PasswordException;
|
PasswordException.prototype = new Error();
|
||||||
|
PasswordException.constructor = PasswordException;
|
||||||
|
|
||||||
|
return PasswordException;
|
||||||
|
})();
|
||||||
|
|
||||||
function bytesToString(bytes) {
|
function bytesToString(bytes) {
|
||||||
var str = '';
|
var str = '';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue