Skip to content

Commit

Permalink
Lower the ES target for instanceof code (#3618)
Browse files Browse the repository at this point in the history
Since #3053 the code makes use of the ES2019 optional catch binding syntax, while generated code in general seems to be compatible with ES2015.
  • Loading branch information
cschramm authored Sep 16, 2023
1 parent e617fca commit 2b7ab44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cli-support/src/js/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3023,7 +3023,7 @@ impl<'a> Context<'a> {
let result;
try {{
result = {} instanceof {};
}} catch {{
}} catch (_) {{
result = false;
}}
",
Expand Down

0 comments on commit 2b7ab44

Please sign in to comment.