mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
utils split on few utils classes
This commit is contained in:
@@ -5,7 +5,7 @@ import { TStatement } from '../types/node/TStatement';
|
||||
|
||||
import { IStackTraceData } from '../interfaces/stack-trace-analyzer/IStackTraceData';
|
||||
|
||||
import { Utils } from '../Utils';
|
||||
import { RandomGeneratorUtils } from '../utils/RandomGeneratorUtils';
|
||||
|
||||
/**
|
||||
* This class appends node into a first deepest BlockStatement in order of function calls
|
||||
@@ -101,7 +101,7 @@ export class NodeAppender {
|
||||
* @param stackTraceRootLength
|
||||
*/
|
||||
public static getRandomStackTraceIndex (stackTraceRootLength: number): number {
|
||||
return Utils.getRandomInteger(0, Math.max(0, Math.round(stackTraceRootLength - 1)));
|
||||
return RandomGeneratorUtils.getRandomInteger(0, Math.max(0, Math.round(stackTraceRootLength - 1)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,7 +9,7 @@ import { TStatement } from '../types/node/TStatement';
|
||||
import { NodeType } from '../enums/NodeType';
|
||||
|
||||
import { Node } from './Node';
|
||||
import { Utils } from '../Utils';
|
||||
import { Utils } from '../utils/Utils';
|
||||
|
||||
export class NodeUtils {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user