mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
Fixed processing of null value in NodeUtils.clone() method
This commit is contained in:
@@ -46,6 +46,10 @@ export class NodeUtils {
|
||||
*/
|
||||
public static clone <T extends ESTree.Node> (astTree: T): T {
|
||||
const cloneRecursive: (node: T) => T = (node: T) => {
|
||||
if (node === null) {
|
||||
return node;
|
||||
}
|
||||
|
||||
const copy: {[key: string]: any} = {};
|
||||
|
||||
Object
|
||||
|
||||
Reference in New Issue
Block a user