diff options
author | Vlastimil Sadilek <vsadilek@linuxbox.cz> | 2018-05-04 14:23:02 +0200 |
---|---|---|
committer | Vlastimil Sadilek <vsadilek@linuxbox.cz> | 2018-05-04 14:23:02 +0200 |
commit | f3e2fc58ec7a72f01adbceade7e418635b5e858e (patch) | |
tree | 1a9a59b71b9d4d8be6f07698ce62994d88a70780 | |
parent | 43bbaa8d6e6e2464ecfc78a453ae7782eace984c (diff) | |
download | novnc-f3e2fc58ec7a72f01adbceade7e418635b5e858e.tar.gz |
Fix: undefined err, undefined Exception
-rw-r--r-- | core/base64.js | 2 | ||||
-rw-r--r-- | core/websock.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/core/base64.js b/core/base64.js index 5182c29..48e28c3 100644 --- a/core/base64.js +++ b/core/base64.js @@ -100,7 +100,7 @@ export default { // If there are any bits left, the base64 string was corrupted if (leftbits) { - err = new Error('Corrupted base64 string'); + var err = new Error('Corrupted base64 string'); err.name = 'Base64-Error'; throw err; } diff --git a/core/websock.js b/core/websock.js index a495915..f9c1256 100644 --- a/core/websock.js +++ b/core/websock.js @@ -267,7 +267,7 @@ Websock.prototype = { if (this._rQbufferSize > MAX_RQ_GROW_SIZE) { this._rQbufferSize = MAX_RQ_GROW_SIZE; if (this._rQbufferSize - this._rQlen - this._rQi < min_fit) { - throw new Exception("Receive Queue buffer exceeded " + MAX_RQ_GROW_SIZE + " bytes, and the new message could not fit"); + throw new Error("Receive Queue buffer exceeded " + MAX_RQ_GROW_SIZE + " bytes, and the new message could not fit"); } } |