0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-10-29 08:58:01 -04:00
denoland-deno/cli/compilers
Bartek Iwańczuk 4e1abb4f3a
refactor: use OpError instead of ErrBox for errors in ops (#4058)
To better reflect changes in error types in JS from #3662 this PR changes 
default error type used in ops from "ErrBox" to "OpError".

"OpError" is a type that can be sent over to JSON; it has all 
information needed to construct error in JavaScript. That
made "GetErrorKind" trait useless and so it was removed altogether.

To provide compatibility with previous use of "ErrBox" an implementation of
"From<ErrBox> for OpError" was added, however, it is an escape hatch and
ops implementors should strive to use "OpError" directly.
2020-02-23 14:51:29 -05:00
..
compiler_worker.rs fix: add io ops to worker to fix fetch (#4054) 2020-02-21 10:35:41 -05:00
js.rs fix 015_duplicate_parallel_import (#3904) 2020-02-06 21:24:51 -05:00
json.rs fix 015_duplicate_parallel_import (#3904) 2020-02-06 21:24:51 -05:00
mod.rs refactor: Use Tokio's single-threaded runtime (#3844) 2020-02-03 18:08:44 -05:00
ts.rs refactor: use OpError instead of ErrBox for errors in ops (#4058) 2020-02-23 14:51:29 -05:00
wasm.rs refactor: remove run_worker_loop (#4028) 2020-02-18 14:47:11 -05:00
wasm_wrap.js Enable TS strict mode by default (#3899) 2020-02-19 15:36:18 -05:00