mirror of
https://github.com/denoland/deno.git
synced 2024-10-31 09:14:20 -04:00
8b31fc23cd
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.
39 lines
1.1 KiB
TOML
39 lines
1.1 KiB
TOML
# Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
|
|
[package]
|
|
name = "deno_core"
|
|
version = "0.129.0"
|
|
authors = ["the Deno authors"]
|
|
edition = "2021"
|
|
license = "MIT"
|
|
readme = "README.md"
|
|
repository = "https://github.com/denoland/deno"
|
|
description = "A modern JavaScript/TypeScript runtime built with V8, Rust, and Tokio"
|
|
|
|
[lib]
|
|
path = "lib.rs"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.55"
|
|
deno_ops = { path = "../ops", version = "0.7.0" }
|
|
futures = "0.3.21"
|
|
indexmap = "1.7.0"
|
|
libc = "0.2.121"
|
|
log = "0.4.14"
|
|
once_cell = "1.10.0"
|
|
parking_lot = "0.12.0"
|
|
pin-project = "1.0.7"
|
|
serde = { version = "1.0.129", features = ["derive"] }
|
|
serde_json = { version = "1.0.66", features = ["preserve_order"] }
|
|
serde_v8 = { version = "0.40.0", path = "../serde_v8" }
|
|
sourcemap = "=6.0.1"
|
|
url = { version = "2.2.2", features = ["serde"] }
|
|
v8 = "0.41.0"
|
|
|
|
[[example]]
|
|
name = "http_bench_json_ops"
|
|
path = "examples/http_bench_json_ops.rs"
|
|
|
|
# These dependencies are only used for the 'http_bench_*_ops' examples.
|
|
[dev-dependencies]
|
|
deno_ast = { version = "0.14.0", features = ["transpiling"] }
|
|
tokio = { version = "1.17", features = ["full"] }
|