HaxeFoundation / HaxeFoundation/haxe
Magic number truncating trace() recursion on js target
Open
- Dominant language
- Haxe
- Stars
- 6.9k
- Forks
- 715
- Avg merge
- 2d 2h
- Merged PRs (30d)
- 11
Description
https://github.com/HaxeFoundation/haxe/blob/ae2e103bd8179a49ea6a27cd37c629f9f3a5f19d/std/js/Boot.hx#L82-L83
This caused me some pain earlier, but I've just seen it bothering someone else, so I figured I'd raise an issue.
This magic number truncates nested objects in js target console output to `<...>` after 5 levels of recursion.
This behaviour is not consistent with any other target, and can cause major headaches when debugging.
Is there a reason it's like this/a reason it was made so small/any merit in increasing it or moving its value to a configuration in hxml?
Contributor guide
Assessment
This issue has not been assessed yet.