mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Fix lint
This commit is contained in:
@@ -11,6 +11,11 @@ import { NodeGuards } from '../../node/NodeGuards';
|
||||
|
||||
@injectable()
|
||||
export abstract class AbstractIdentifierNamesGenerator implements IIdentifierNamesGenerator {
|
||||
/**
|
||||
* @type {number}
|
||||
*/
|
||||
private static readonly maxGenerationAttempts: number = 1000;
|
||||
|
||||
/**
|
||||
* @type {IOptions}
|
||||
*/
|
||||
@@ -21,11 +26,6 @@ export abstract class AbstractIdentifierNamesGenerator implements IIdentifierNam
|
||||
*/
|
||||
protected readonly randomGenerator: IRandomGenerator;
|
||||
|
||||
/**
|
||||
* @type {number}
|
||||
*/
|
||||
private static readonly maxGenerationAttempts: number = 1000;
|
||||
|
||||
/**
|
||||
* @type {Set<string>}
|
||||
*/
|
||||
@@ -143,9 +143,9 @@ export abstract class AbstractIdentifierNamesGenerator implements IIdentifierNam
|
||||
protected checkGenerationAttempts(attempts: number): void {
|
||||
if (attempts > AbstractIdentifierNamesGenerator.maxGenerationAttempts) {
|
||||
throw new Error(
|
||||
'Unable to generate a valid identifier name. '
|
||||
+ 'This is likely caused by `reservedNames` patterns that match all generated names. '
|
||||
+ 'Please check your `reservedNames` option.'
|
||||
'Unable to generate a valid identifier name. ' +
|
||||
'This is likely caused by `reservedNames` patterns that match all generated names. ' +
|
||||
'Please check your `reservedNames` option.'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user