From f37d67e80933bc437fbd29092108eaf2deeee383 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Sun, 6 Jan 2019 14:17:13 -0500 Subject: Revert "Split Runner from Compiler" (#1462) This reverts commit 3d03f5b0cb3c513e449f3aaa5d35c493b72f47b4. --- src/js_errors.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/js_errors.rs') diff --git a/src/js_errors.rs b/src/js_errors.rs index 87b1db0d5..338ce7424 100644 --- a/src/js_errors.rs +++ b/src/js_errors.rs @@ -497,7 +497,6 @@ mod tests { #[test] fn js_error_apply_source_map_2() { - // Because this is accessing the live bundle, this test might be more fragile let e = JSError { message: "TypeError: baz".to_string(), frames: vec![StackFrame { @@ -513,9 +512,8 @@ mod tests { let getter = MockSourceMapGetter {}; let actual = e.apply_source_map(&getter); assert_eq!(actual.message, "TypeError: baz"); + // Because this is accessing the live bundle, this test might be more fragile assert_eq!(actual.frames.len(), 1); - assert_eq!(actual.frames[0].line, 15); - assert_eq!(actual.frames[0].column, 16); assert!(actual.frames[0].script_name.ends_with("js/util.ts")); } -- cgit v1.2.3