Skip to content

Commit 2ad77fb

Browse files
committed
docs(linter/no-this-before-super): correct "Why is this bad?" section (#15408)
The description was of "eslint/getter-return" instead.
1 parent 2820a39 commit 2ad77fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/oxc_linter/src/rules/eslint/no_this_before_super.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ declare_oxc_lint!(
3030
///
3131
/// ### Why is this bad?
3232
///
33-
/// Getters should always return a value.
34-
/// If they don't, it's probably a mistake.
33+
/// In the constructor of derived classes, if `this`/`super` are used before `super()` calls,
34+
/// it raises a ReferenceError.
3535
///
3636
/// ### Examples
3737
///

0 commit comments

Comments
 (0)