From 25ac398b5732a74d8f91474fb4076a2ebee77c8e Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Sun, 12 Nov 2023 13:08:43 +0000 Subject: [PATCH] Conform var to boolean [refactor] --- lib/serialize/parseFunction.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/serialize/parseFunction.js b/lib/serialize/parseFunction.js index 828415f7..a4aaba90 100644 --- a/lib/serialize/parseFunction.js +++ b/lib/serialize/parseFunction.js @@ -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) {