summaryrefslogtreecommitdiff
path: root/Cargo.lock
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2022-04-15 15:08:09 +0100
committerGitHub <noreply@github.com>2022-04-15 16:08:09 +0200
commit8b31fc23cd80de9baa62535e95367da7a21c9cfd (patch)
tree994748bd06ed5b4953929392107b6beaa1c1c337 /Cargo.lock
parentb4af648c1515a8e79d7a5d1b14d8a4ba9d966a72 (diff)
refactor: Move source map lookups to core (#14274)
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.
Diffstat (limited to 'Cargo.lock')
-rw-r--r--Cargo.lock2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 56189dd04..83e19afab 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -786,7 +786,6 @@ dependencies = [
"semver-parser 0.10.2",
"serde",
"shell-escape",
- "sourcemap",
"tempfile",
"test_util",
"text-size",
@@ -866,6 +865,7 @@ dependencies = [
"serde",
"serde_json",
"serde_v8",
+ "sourcemap",
"tokio",
"url",
"v8",