mirror of
https://github.com/leporello-js/leporello-js
synced 2026-01-13 21:14:28 -08:00
async calls WIP
This commit is contained in:
@@ -447,10 +447,15 @@ nodes that are in the second tree that are not in the first tree
|
||||
*/
|
||||
const merge_calltrees = (prev, next) => {
|
||||
return Object.fromEntries(
|
||||
Object.entries(prev).map(([module, {exports, calls}]) =>
|
||||
Object.entries(prev).map(([module, {is_external, exports, calls}]) =>
|
||||
[
|
||||
module,
|
||||
{exports, calls: merge_calltree_nodes(calls, next[module].calls)[1]}
|
||||
is_external
|
||||
? {is_external, exports}
|
||||
: {
|
||||
exports,
|
||||
calls: merge_calltree_nodes(calls, next[module].calls)[1]
|
||||
}
|
||||
]
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user