fix expand calltree node for new calls

This commit is contained in:
Dmitry Vasilev
2023-01-08 06:19:38 +08:00
parent a0b3553727
commit 2ee6290452
2 changed files with 21 additions and 1 deletions

View File

@@ -338,7 +338,11 @@ export const eval_modules = (
is_recording_deferred_calls = false
children = null
try {
node.fn.apply(node.context, node.args)
if(node.is_new) {
new node.fn(...node.args)
} else {
node.fn.apply(node.context, node.args)
}
} catch(e) {
// do nothing. Exception was caught and recorded inside 'trace'
}