Skip to content

Commit

Permalink
Conform var to boolean [refactor]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Nov 12, 2023
1 parent 9a23f47 commit 25ac398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/serialize/parseFunction.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ module.exports = function parseFunction(
// - Within a function, later statements before earlier statements.
// Reverse order ensures correct handling of nested amendments
// e.g. 2 const violations `c = c2 = 1` or const violation + super `super.foo(c = 1)`.
const superIsProto = isClass || fnInfo.superIsProto;
const superIsProto = isClass || fnInfo.superIsProto || false;
for (const amendment of amendments) {
const {type: amendmentType, trail, trailNodes} = amendment;
if (amendmentType === SUPER_CALL) {
Expand Down

0 comments on commit 25ac398

Please sign in to comment.