From ef6ee25e09c902e1f9d89a40cf05660432e7143c Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Mon, 20 Apr 2020 20:39:02 +0100 Subject: refactor(cli/fmt_errors): Improve source line formatting (#4832) --- core/js_errors.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'core/js_errors.rs') 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) -- cgit v1.2.3