Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-09-02 | refactor: move JsError formatting to deno_runtime (#15345) | Christian Dürr | |
This takes the existing `fmt_error` module from cli and puts it as a public module into `deno_runtime`. | |||
2022-07-15 | refactor: remove redundant qualification of symbols in Rust (#15201) | orvit | |
2022-07-01 | chore: use Rust 1.62.0 (#15028) | Bartek Iwańczuk | |
2022-06-20 | perf(core): Cache source lookups (#14816) | Nayeem Rahman | |
Keep a cache for source maps and source lines. We sort of already had a cache argument for source map lookup functions but we just passed an empty map instead of storing it. Extended it to cache source line lookups as well and plugged it into runtime state. | |||
2022-05-17 | BREAKING: Remove unstable Deno.emit and Deno.formatDiagnostics APIs (#14463) | Bartek Iwańczuk | |
2022-05-03 | refactor: add core.formatLocationFilename, remove op_format_filename (#14474) | Bartek Iwańczuk | |
This commit moves "op_format_location" to "core/ops_builtin.rs" and removes "Deno.core.createPrepareStackTrace" in favor of "Deno.core.prepareStackTrace". Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com> | |||
2022-04-27 | refactor: Remove PrettyJsError and js_error_create_fn (#14378) | Nayeem Rahman | |
This commit: - removes "fmt_errors::PrettyJsError" in favor of "format_js_error" fn - removes "deno_core::JsError::create" and "deno_core::RuntimeOptions::js_error_create_fn" - adds new option to "deno_runtime::ops::worker_host::init" | |||
2022-04-19 | feat(ext/web): add globalThis.reportError() (#13799) | Nayeem Rahman | |
2022-04-16 | feat: Better formatting for AggregateError (#14285) | Bartek Iwańczuk | |
This commit adds "aggregated" field to "deno_core::JsError" that stores instances of "JsError" recursively to properly handle "AggregateError" formatting. Appropriate logics was added to "PrettyJsError" and "console" API to format AggregateErrors. Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com> | |||
2022-04-15 | refactor: Move source map lookups to core (#14274) | Nayeem Rahman | |
The following transformations gradually faced by "JsError" have all been moved up front to "JsError::from_v8_exception()": - finding the first non-"deno:" source line; - moving "JsError::script_resource_name" etc. into the first error stack in case of syntax errors; - source mapping "JsError::script_resource_name" etc. when wrapping the error even though the frame locations are source mapped earlier; - removing "JsError::{script_resource_name,line_number,start_column,end_column}" entirely in favour of "js_error.frames.get(0)". We also no longer pass a js-side callback to "core/02_error.js" from cli. I avoided doing this on previous occasions because the source map lookups were in an awkward place. | |||
2022-04-13 | refactor(core/error): Clarify JsError message fields (#14269) | Nayeem Rahman | |
2022-01-15 | chore: upgrade to rust 1.58 (#13377) | David Sherret | |
2022-01-07 | chore: update copyright to 2022 (#13306) | Ryan Dahl | |
Co-authored-by: Erfan Safari <erfanshield@outlook.com> | |||
2021-12-29 | feat: output `cause` on JS runtime errors (#13209) | Leo Kettmeir | |
2021-10-18 | fix(cli/fmt_errors): don't panic on source line formatting errors (#12449) | Nayeem Rahman | |
Returns empty values in case of errors, source lines are non-essential anyway. These errors can happen e.g. when source files change at runtime. A warning is also printed to help us track when it happens in unexpected cases besides this. | |||
2021-09-18 | fix(cli/fmt_errors): Abbreviate long data URLs in stack traces (#12127) | Nayeem Rahman | |
Co-authored-by: Mike White <mike.white@auctane.com> | |||
2021-09-12 | refactor: Remove duplicated colors.rs file (#11990) | Ryan Dahl | |
2021-07-30 | chore: upgrade Rust to 1.54.0 (#11554) | Yusuke Tanaka | |
2021-04-22 | fix(#10292): Don't gray-out internal frames (#10293) | Ryan Dahl | |
2021-01-11 | chore: update copyright to 2021 (#9092) | Yusuke Tanaka | |
2020-12-17 | refactor: Rename runtime/rt to runtime/js (#8806) | Nayeem Rahman | |
2020-11-19 | refactor(cli): rename fmt_errors::JsError to PrettyJsError (#8435) | Bartek Iwańczuk | |
This commit renames "fmt_errors::JsError" to "PrettyJsError" to avoid confusion with "deno_core::JsError". Consequently "CoreJsError" aliases to "deno_core::JsError" were removed. Additionally source mapping step has been removed from "PrettyJsError::create" to better separate domains. | |||
2020-10-23 | refactor(cli): migrate run and cache to new infrastructure (#7996) | Kitson Kelly | |
Co-authored-by: Ryan Dahl <ry@tinyclouds.org> | |||
2020-09-22 | refactor(cli/fmt_errors): Color stack traces in Rust (#7628) | Nayeem Rahman | |
2020-09-15 | refactor: use the 'anyhow' crate instead of 'ErrBox' (#7476) | Bert Belder | |
2020-09-06 | refactor(core): rename CoreIsolate to JsRuntime (#7373) | Bartek Iwańczuk | |
deno_core/ - rename core_isolate.rs to runtime.rs - rename CoreIsolate to JsRuntime - rename JSError to JsError - rename JSStackFrame to JsStackFrame cli/ - update references from deno_core::CoreIsolate to deno_core::JsRuntime - rename deno_core::JSError to deno_core::JsError - rename fmt_errors::JSError to fmt_errors::JsError | |||
2020-08-26 | refactor: remove OpError, use ErrBox everywhere (#7187) | Bert Belder | |
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> | |||
2020-06-29 | refactor: util functions take slices instead of heap values (#6547) | Valentin Anger | |
2020-06-08 | feat: "deno lint" subcommand (#6125) | Bartek Iwańczuk | |
2020-05-09 | refactor(cli): unify display of errors from Rust and JS (#5183) | Bartek Iwańczuk | |
2020-05-02 | fix(cli/fmt_errors): Respect NO_COLOR for stack frames (#5051) | Nayeem Rahman | |
2020-05-01 | fix misaligned error reporting on tab char (#5032) | Fenzland | |
2020-04-20 | refactor(cli/fmt_errors): Improve source line formatting (#4832) | Nayeem Rahman | |
2020-04-13 | refactor(core/js_error): Align JSStackFrame with CallSite (#4715) | Nayeem Rahman | |
Renames and adds missing fields to JSStackFrame from CallSite. Fixes #4705. Cleans up base changes for line and column numbers. | |||
2020-04-11 | refactor(cli/fmt_errors): Format stack frames in prepareStackTrace() (#4706) | Nayeem Rahman | |
2020-04-10 | fix(core/js_error): Get frame data from prepareStackTrace() (#4690) | Nayeem Rahman | |
Fixes: #2703 Fixes: #2710 Closes: #4153 Closes: #4232 Co-authored-by: Kevin (Kun) Kassimo Qian <kevinkassimo@gmail.com> | |||
2020-04-03 | clippy (#4618) | Kitson Kelly | |
2020-03-24 | hide source line if error message longer than 150 chars (#4487) | Kevin (Kun) "Kassimo" Qian | |
2020-03-02 | Do not convert exceptions to JSON and back (#4214) | Bert Belder | |
2020-03-01 | Make internel error frames dimmer (#4201) | Kevin (Kun) "Kassimo" Qian | |
2020-01-17 | workers: minimal error handling and async module loading (#3665) | Bartek Iwańczuk | |
2020-01-05 | Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600) | Ry Dahl | |
2020-01-02 | Happy new year! (#3578) | Ry Dahl | |
2019-12-23 | Upgrades rust to 1.40.0 (#3542) | Axetroy | |
2019-09-15 | Rename ansi.rs to colors.rs (#2956) | Tomohito Nakayama | |
2019-07-11 | Refactor error to use dynamic dispatch and traits | Bert Belder | |
This is in preperation for dynamic import (#1789), which is more easily implemented when errors are dynamic. | |||
2019-06-19 | Combine CLI Errors (#2487) | Kitson Kelly | |