result = reg.toString();
^
TypeError: Cannot read properties of undefined (reading 'toString')
at generateRegExp (/Users/testuser/homebrew/lib/node_modules/deobfuscator/node_modules/@javascript-obfuscator/escodegen/escodegen.js:339:22)
at CodeGenerator.Literal (/Users/testuser/homebrew/lib/node_modules/deobfuscator/node_modules/@javascript-obfuscator/escodegen/escodegen.js:2456:20)
at CodeGenerator.generateExpression (/Users/testuser/homebrew/lib/node_modules/deobfuscator/node_modules/@javascript-obfuscator/escodegen/escodegen.js:2585:28)
at CodeGenerator.ExpressionStatement (/Users/testuser/homebrew/lib/node_modules/deobfuscator/node_modules/@javascript-obfuscator/escodegen/escodegen.js:1349:28)
at CodeGenerator.generateStatement (/Users/testuser/homebrew/lib/node_modules/deobfuscator/node_modules/@javascript-obfuscator/escodegen/escodegen.js:2598:33)
at CodeGenerator.Program (/Users/testuser/homebrew/lib/node_modules/deobfuscator/node_modules/@javascript-obfuscator/escodegen/escodegen.js:1738:43)
at CodeGenerator.generateStatement (/Users/testuser/homebrew/lib/node_modules/deobfuscator/node_modules/@javascript-obfuscator/escodegen/escodegen.js:2598:33)
at generateInternal (/Users/testuser/homebrew/lib/node_modules/deobfuscator/node_modules/@javascript-obfuscator/escodegen/escodegen.js:2619:28)
at Object.generate (/Users/testuser/homebrew/lib/node_modules/deobfuscator/node_modules/@javascript-obfuscator/escodegen/escodegen.js:2687:18)
at ke.<anonymous> (/Users/testuser/homebrew/lib/node_modules/deobfuscator/dist/index.js:28:62578)
Node.js v20.5.0
Encountered when trying to deobfuscate this snippet:
The error:
The problematic Node: