Skip to content

Commit 2b7ab44

Browse files
authored
Lower the ES target for instanceof code (#3618)
Since #3053 the code makes use of the ES2019 optional catch binding syntax, while generated code in general seems to be compatible with ES2015.
1 parent e617fca commit 2b7ab44

File tree

1 file changed

+1
-1
lines changed
  • crates/cli-support/src/js

1 file changed

+1
-1
lines changed

crates/cli-support/src/js/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3023,7 +3023,7 @@ impl<'a> Context<'a> {
30233023
let result;
30243024
try {{
30253025
result = {} instanceof {};
3026-
}} catch {{
3026+
}} catch (_) {{
30273027
result = false;
30283028
}}
30293029
",

0 commit comments

Comments
 (0)