popErrorScope status when stack is empty? #369
Labels
!discuss
Needs discussion (at meeting or online)
errors
Error reporting
needs docs
Non-trivial API contract needs to be documented. Orthogonal to open vs closed; remove when doc'd.
In JS when the error scope stack is empty, popErrorScope rejects with OperationError. What should we do in C?
Emscripten and Dawn currently translate it to
Unknown
plus a message string. However we also useUnknown
in Emscripten if the error type is some unexpected object (e.g. if we add one to the JS API in the future).We should also say what the message string is. I think it must be empty if the status is NoError and it should be non-empty for any other status. (since message can't be null anymore)
The text was updated successfully, but these errors were encountered: