diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-12-16 17:14:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-16 17:14:12 +0100 |
commit | 6984b63f2f3c8d0819fe2dced8252a81f3400ae7 (patch) | |
tree | 5201bc962f913927409ae2770aca48ffa3aaaa34 /runtime/rt/40_fs_events.js | |
parent | 9fe26f8ca189ac81d9c20c454b9dbfa5e1011c3f (diff) |
refactor: rewrite ops to use ResourceTable2 (#8512)
This commit migrates all ops to use new resource table
and "AsyncRefCell".
Old implementation of resource table was completely
removed and all code referencing it was updated to use
new system.
Diffstat (limited to 'runtime/rt/40_fs_events.js')
-rw-r--r-- | runtime/rt/40_fs_events.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/rt/40_fs_events.js b/runtime/rt/40_fs_events.js index a36adecba..a179e8c1b 100644 --- a/runtime/rt/40_fs_events.js +++ b/runtime/rt/40_fs_events.js @@ -24,6 +24,8 @@ } catch (error) { if (error instanceof errors.BadResource) { return { value: undefined, done: true }; + } else if (error instanceof errors.Interrupted) { + return { value: undefined, done: true }; } throw error; } |