Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-12-13 | Fix typo in errors.ts JSDoc | Tim Wang | |
2018-10-19 | Add missing copyrights (#1024) | ztplz | |
2018-10-14 | Align JSDoc to style guide. | Kitson Kelly | |
2018-10-07 | Updates to js to clean up default library | Kitson Kelly | |
2018-10-04 | Rename fbs to msg. | Ryan Dahl | |
2018-09-09 | Expose deno.ErrorKind | Ryan Dahl | |
Originally we planned to have a JS class for each error code. But it seems better to just have a single DenoError class with a "kind" property. One nice thing about using an enum instead of classes for errors is that switch() can be used during error handling instead of a bunch of instanceof branches. | |||
2018-09-09 | Remove namespace from src/msg.fbs | Ryan Dahl | |
2018-09-09 | Map promises onto futures. | Ryan Dahl | |
Refactors handlers.rs The idea is that all Deno "ops" (aka bindings) should map onto a Rust Future. By setting the "sync" flag in the Base message users can determine if the future is executed immediately or put on the event loop. In the case of async futures, a promise is automatically created. Errors are automatically forwarded and raised. TODO: - The file system ops in src/handler.rs are not using the thread pool yet. This will be done in the future using tokio_threadpool::blocking. That is, if you try to call them asynchronously, you will get a promise and it will act asynchronous, but currently it will be blocking. - Handlers in src/handler.rs returned boxed futures. This was to make it easy while developing. We should try to remove this allocation. | |||
2018-09-05 | Mark APIs at internal and include JSDoc in types | Kitson Kelly | |
2018-08-21 | Better error handling in src/handlers.rs | Ryan Dahl | |
Introduces error codes that are shared between JS/RS Fixes #526. |