diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-01-06 14:17:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-06 14:17:13 -0500 |
commit | f37d67e80933bc437fbd29092108eaf2deeee383 (patch) | |
tree | 1c5ca050f8a4786b7a872b013c35da0a6b5f6e77 /src/js_errors.rs | |
parent | 57301909cd9eee6aeaafeda19aab372e034ff7c4 (diff) |
Revert "Split Runner from Compiler" (#1462)
This reverts commit 3d03f5b0cb3c513e449f3aaa5d35c493b72f47b4.
Diffstat (limited to 'src/js_errors.rs')
-rw-r--r-- | src/js_errors.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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")); } |