diff options
| author | Ian Johnson <ian@ianjohnson.dev> | 2025-02-15 16:23:33 -0500 |
|---|---|---|
| committer | Ian Johnson <ian@ianjohnson.dev> | 2025-02-15 17:29:31 -0500 |
| commit | b745a96d20e8159a68be53478d30c72f8c216dd3 (patch) | |
| tree | 39c5534d0e11e4c3da8efb36e0d920d48aadb2b6 /src/codegen/llvm/bitcode_writer.zig | |
| parent | 293603f04029e2b1edf235a80417f3bb9651482f (diff) | |
| download | zig-b745a96d20e8159a68be53478d30c72f8c216dd3.tar.gz zig-b745a96d20e8159a68be53478d30c72f8c216dd3.zip | |
Autodoc: use browser console log levels and simplify panic
Using the browser's `console.error`, etc. functions instead of `console.log` produces prettier output in the console. Additionally, `console.error` in particular includes a stack trace, which is useful for debugging where the error occurred.
Additionally, this commit leverages the enhanced logging to delete the separate `panic` function from the JS code and write it in Zig instead.
Diffstat (limited to 'src/codegen/llvm/bitcode_writer.zig')
0 files changed, 0 insertions, 0 deletions
