Closed Bug 1633788 Opened 5 years ago Closed 5 years ago

Cranelift: pass compilation error messages from Baldrdash to C++

Categories

(Core :: JavaScript: WebAssembly, enhancement, P5)

enhancement

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bbouvier, Unassigned)

References

Details

Right now, the error is displayed as an error! message onto stdout, and C++ returns a generic message "Cranelift error in clifFunc #42".

Instead, we should probably pre-reserve a buffer of text with a fixed length in C++, pass it to Rust, who'd clamp the message's size before writing it into the buffer.

An alternative is to have Rust allocate the memory for the error message, pass it to C++, and then have C++ call back into Rust to clean up the memory. Not pretty either.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.