From d96fb6ad053c975e1d1619ae12e27dc7272c812a Mon Sep 17 00:00:00 2001 From: xnerhu Date: Sun, 10 Sep 2023 15:11:43 +0200 Subject: [PATCH] ignore uknown browser engine kind in detectEvalLengthInconsistency --- src/detectors/eval_length.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/detectors/eval_length.ts b/src/detectors/eval_length.ts index a1746e71..741aa652 100644 --- a/src/detectors/eval_length.ts +++ b/src/detectors/eval_length.ts @@ -7,6 +7,9 @@ export function detectEvalLengthInconsistency({ evalLength }: ComponentDict): De const length = evalLength.value const browser = getBrowserKind() const browserEngine = getBrowserEngineKind() + if (browserEngine == BrowserEngineKind.Unknown) { + return false + } return ( (length === 37 && !arrayIncludes([BrowserEngineKind.Webkit, BrowserEngineKind.Gecko], browserEngine)) || (length === 39 && !arrayIncludes([BrowserKind.IE], browser)) ||