SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 117 JavaScript

[rust-compiler] Fix inner function debug log flushing and todo error event format

Fixed 2 test failures: (1) Inner function debug logs were lost when
analyse_functions returned an error because the `?` operator propagated
before logs were flushed. Now captures the result, flushes logs
unconditionally, then propagates. (2) CompilerDiagnostic::todo() produced
nested error events with sub-details while TS uses flat format with loc
directly on the detail. Added flat-format detection in log_error,
compiler_error_to_info, and log_errors_as_events. 1722/1723 passing.
J
Joe Savona committed
2d3151170eb14212f07f53dd9de7f79c819c44b6
Parent: dd914d0