Bug 1544223 - Disable a few high complexity functions and lower the limit to prevent more complexity; r=jdescottes
Depends on D31973 Differential Revision: https://phabricator.services.mozilla.com/D32120
This commit is contained in:
@@ -268,6 +268,7 @@ function cssTrim(str) {
|
||||
* rewriteDeclarations, and skip the usual name-checking
|
||||
* heuristic.
|
||||
*/
|
||||
/* eslint-disable complexity */
|
||||
function parseDeclarationsInternal(isCssPropertyKnown, inputString,
|
||||
parseComments, inComment, commentOverride) {
|
||||
if (inputString === null || inputString === undefined) {
|
||||
@@ -465,6 +466,7 @@ function parseDeclarationsInternal(isCssPropertyKnown, inputString,
|
||||
|
||||
return declarations;
|
||||
}
|
||||
/* eslint-enable complexity */
|
||||
|
||||
/**
|
||||
* Returns an array of CSS declarations given a string.
|
||||
|
||||
Reference in New Issue
Block a user