diff options
Diffstat (limited to 'core/rfb.js')
-rw-r--r-- | core/rfb.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/rfb.js b/core/rfb.js index ffdd9c0..9f47c47 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -35,10 +35,10 @@ const DISCONNECT_TIMEOUT = 3; export default class RFB extends EventTargetMixin { constructor(target, url, options) { if (!target) { - throw Error("Must specify target"); + throw new Error("Must specify target"); } if (!url) { - throw Error("Must specify URL"); + throw new Error("Must specify URL"); } super(); |