fix: function mappings were registered incorrectly

This commit is contained in:
2025-01-15 20:12:52 +02:00
parent 961c8cefcc
commit 29b0c91c5d
3 changed files with 16 additions and 13 deletions

View File

@@ -45,8 +45,8 @@ env.add(Compiler.KEY, (_env, filename, raw, mapper) -> {
// We'll register the source and function source mappings for debugging
DebugContext.get(env).onSource(filename, raw);
for (var el : res.bodies()) {
DebugContext.get(env).onFunctionLoad(el, res.map(mapper));
for (var el : res.all()) {
DebugContext.get(env).onFunctionLoad(el.body(), el.map(mapper));
}
// Finally, we will construct the function