summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2020-04-20 20:39:02 +0100
committerGitHub <noreply@github.com>2020-04-20 15:39:02 -0400
commitef6ee25e09c902e1f9d89a40cf05660432e7143c (patch)
treeb43745fa471693e7d8787b4a5e9a2489f895c873 /core
parentf72f045de586a7d0e428b77f6a3e381178cc6674 (diff)
refactor(cli/fmt_errors): Improve source line formatting (#4832)
Diffstat (limited to 'core')
-rw-r--r--core/js_errors.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/core/js_errors.rs b/core/js_errors.rs
index 8429d731b..0e3f8cb91 100644
--- a/core/js_errors.rs
+++ b/core/js_errors.rs
@@ -1,11 +1,5 @@
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-// TODO: This currently only applies to uncaught exceptions. It would be nice to
-// also have source maps for situations like this:
-// const err = new Error("Boo!");
-// console.log(err.stack);
-// It would require calling into Rust from Error.prototype.prepareStackTrace.
-
use crate::ErrBox;
use rusty_v8 as v8;
use std::convert::TryFrom;
@@ -260,7 +254,6 @@ fn format_source_loc(
line_number: i64,
column_number: i64,
) -> String {
- // TODO match this style with how typescript displays errors.
let line_number = line_number;
let column_number = column_number;
format!("{}:{}:{}", file_name, line_number, column_number)