Skip to content

Commit c97c789

Browse files
authored
docs: Add missing no-new-native-nonconstructor docs code fence (#16503)
1 parent e950964 commit c97c789

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

docs/src/rules/no-new-native-nonconstructor.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ let foo = new Symbol("foo");
1919

2020
// throws a TypeError
2121
let result = new BigInt(9007199254740991);
22+
```
2223

2324
Both `new Symbol` and `new BigInt` throw a type error because they are functions and not classes. It is easy to make this mistake by assuming the uppercase letters indicate classes.
2425

0 commit comments

Comments
 (0)