Originally, JSErrorExceptions only needed to account for nested errors for NestedError use cases, so it manually attempts to read innerErrors as the cause. However, there are new patterns for nested errors, we should account for them properly during deserialization and ensure JS encodes cause consistently across errors.
Originally,
JSErrorExceptions only needed to account for nested errors forNestedErroruse cases, so it manually attempts to readinnerErrorsas thecause. However, there are new patterns for nested errors, we should account for them properly during deserialization and ensure JS encodes cause consistently across errors.