LLRT (Low Latency Runtime) is an experimental, lightweight JavaScript runtime designed to address the growing demand for fast and efficient Serverless applications.
Refactor console module to use a recursive implementation (we're limiting depth to 4 levels) instead of a non-recursive to simplify implementation and improve performance. This rewrite also removes a ton of branching for everything from indentation to ascii colors etc.
Checklist
[x] Created unit tests in tests/unit and/or in Rust for my feature if needed
[x] Ran make fix to format JS and apply Clippy auto fixes
[x] Made sure my code didn't add any additional warnings: make check
[x] Updated documentation if needed (API.md/README.md/Other)
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Issue # (if available)
Fixes: https://github.com/awslabs/llrt/issues/341 Related: https://github.com/awslabs/llrt/issues/351
Description of changes
Refactor console module to use a recursive implementation (we're limiting depth to 4 levels) instead of a non-recursive to simplify implementation and improve performance. This rewrite also removes a ton of branching for everything from indentation to ascii colors etc.
Checklist
tests/unit
and/or in Rust for my feature if neededmake fix
to format JS and apply Clippy auto fixesmake check
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.