mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
StackTraceAnalyzer - correct analyzing of self-invoking functions: extend test
This commit is contained in:
@@ -286,9 +286,13 @@ describe('StackTraceAnalyzer', () => {
|
||||
name: null,
|
||||
callee: (<ESTree.FunctionExpression>getFunctionExpressionById(astTree, 'bar')).body,
|
||||
stackTrace: [{
|
||||
name: 'baz',
|
||||
callee: (<ESTree.FunctionDeclaration>getFunctionDeclarationByName(astTree, 'baz')).body,
|
||||
stackTrace: []
|
||||
name: null,
|
||||
callee: (<ESTree.FunctionExpression>getFunctionExpressionById(astTree, 'baz')).body,
|
||||
stackTrace: [{
|
||||
name: 'inner',
|
||||
callee: (<ESTree.FunctionDeclaration>getFunctionDeclarationByName(astTree, 'inner')).body,
|
||||
stackTrace: []
|
||||
}]
|
||||
}]
|
||||
}]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user