From 60b53fd6b6dc2af83a64c332b9f3a1926f43d631 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Tue, 21 Jan 2020 01:30:30 +1100 Subject: Use globalThis to reference global scope (#3719) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- cli/source_maps.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cli/source_maps.rs') diff --git a/cli/source_maps.rs b/cli/source_maps.rs index d3cda390d..e326c644e 100644 --- a/cli/source_maps.rs +++ b/cli/source_maps.rs @@ -412,7 +412,7 @@ mod tests { 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!(actual.frames[0].script_name.ends_with("/window.ts")); + assert!(actual.frames[0].script_name.ends_with("/dom_types.ts")); } #[test] -- cgit v1.2.3