diff options
Diffstat (limited to 'runtime/js/01_errors.js')
-rw-r--r-- | runtime/js/01_errors.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/js/01_errors.js b/runtime/js/01_errors.js index 7e2ad29ab..8288e3ce9 100644 --- a/runtime/js/01_errors.js +++ b/runtime/js/01_errors.js @@ -96,6 +96,13 @@ class WriteZero extends Error { } } +class WouldBlock extends Error { + constructor(msg) { + super(msg); + this.name = "WouldBlock"; + } +} + class UnexpectedEof extends Error { constructor(msg) { super(msg); @@ -139,6 +146,7 @@ const errors = { TimedOut, Interrupted, WriteZero, + WouldBlock, UnexpectedEof, BadResource, Http, |