mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Support for class static blocks
This commit is contained in:
@@ -2,6 +2,7 @@ import { injectable, } from 'inversify';
|
||||
|
||||
import * as eslintScope from 'eslint-scope';
|
||||
import * as estraverse from '@javascript-obfuscator/estraverse';
|
||||
import { KEYS, VisitorKeys } from 'eslint-visitor-keys';
|
||||
import * as ESTree from 'estree';
|
||||
|
||||
import { IScopeAnalyzer } from '../../interfaces/analyzers/scope-analyzer/IScopeAnalyzer';
|
||||
@@ -15,8 +16,11 @@ export class ScopeAnalyzer implements IScopeAnalyzer {
|
||||
/**
|
||||
* @type {eslintScope.AnalysisOptions}
|
||||
*/
|
||||
private static readonly eslintScopeOptions: eslintScope.AnalysisOptions = {
|
||||
private static readonly eslintScopeOptions: eslintScope.AnalysisOptions & {
|
||||
childVisitorKeys: VisitorKeys;
|
||||
} = {
|
||||
ecmaVersion,
|
||||
childVisitorKeys: KEYS,
|
||||
optimistic: true
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user