From aa6d83787a0e92d709bc0bcb19ca752627a8a73e Mon Sep 17 00:00:00 2001 From: Sajal Garg Date: Thu, 15 Jan 2026 10:33:14 +0530 Subject: [PATCH 1/2] Updated constants.js with serializableErrorProps --- lib/core/constants.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/core/constants.js b/lib/core/constants.js index 71918e37..dec74111 100644 --- a/lib/core/constants.js +++ b/lib/core/constants.js @@ -44,7 +44,15 @@ const constants = { timeout: 10000 }), allOrigins: '', - sameOrigin: '' + sameOrigin: '', + serializableErrorProps: Object.freeze([ + 'message', + 'stack', + 'name', + 'code', + 'ruleId', + 'method' + ]) }; definitions.forEach(definition => { From 0036065647ad9205b7df15a3ef2f433d5591c9dd Mon Sep 17 00:00:00 2001 From: Sajal Garg Date: Thu, 15 Jan 2026 10:37:16 +0530 Subject: [PATCH 2/2] Kept comments same for consistency --- lib/core/constants.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/core/constants.js b/lib/core/constants.js index dec74111..c5b9fd2b 100644 --- a/lib/core/constants.js +++ b/lib/core/constants.js @@ -27,7 +27,10 @@ const definitions = [ const constants = { helpUrlBase: 'https://dequeuniversity.com/rules/', + // Size of a grid square in pixels gridSize: 200, + // At a certain point, looping over an array of elements and using .match on them + // is slower than just running querySelectorAll again. selectorSimilarFilterLimit: 700, results: [], resultGroups: [],