java.lang.RuntimeException: __the_message__!
  at com.google.j2cl.junit.integration.stacktrace.data.ExceptionWithCauseStacktraceTest.test(ExceptionWithCauseStacktraceTest.java:29)
  __OPTIONAL__ # TODO(b/63645442): add caused-by chain when reported by js unit tests.
  __OPTIONAL__
  __OPTIONAL__
  __OPTIONAL__
  __OPTIONAL__
  __OPTIONAL__
  __OPTIONAL__
  __OPTIONAL__
  __OPTIONAL__
  __OPTIONAL__
  __OPTIONAL__
  __OPTIONAL__

java.lang.RuntimeException: __the_message__!
  at com.google.j2cl.junit.integration.stacktrace.data.ExceptionWithCauseStacktraceTest.test(ExceptionWithCauseStacktraceTest.java:29)
  __OPTIONAL__
# TODO(cl/161369341): add support for cause message in stacktrace deobufscator
at [INVALID 'Caused by: Error: java.lang.RuntimeException: java.lang.NullPointerException: root cause']
  at java.lang.RuntimeException.<synthetic: ctor_create>(RuntimeException.java:36)
  at com.google.j2cl.junit.integration.stacktrace.data.ExceptionWithCauseStacktraceTest.method(ExceptionWithCauseStacktraceTest.java:34)
  at com.google.j2cl.junit.integration.stacktrace.data.ExceptionWithCauseStacktraceTest.test(ExceptionWithCauseStacktraceTest.java:27)
  __OPTIONAL__ # Testing infra on J2CL
at [INVALID 'Caused by: TypeError: java.lang.NullPointerException: root cause']
  at java.lang.NullPointerException.<synthetic: ctor_create>(NullPointerException.java:30)
  at com.google.j2cl.junit.integration.stacktrace.data.ExceptionWithCauseStacktraceTest.method(ExceptionWithCauseStacktraceTest.java:34)
  __OPTIONAL__ # Difference between compiled and uncompiled mode: The frame above is duplicated in compiled mode.
  at com.google.j2cl.junit.integration.stacktrace.data.ExceptionWithCauseStacktraceTest.test(ExceptionWithCauseStacktraceTest.java:27)
  __OPTIONAL__ # Testing infra on J2CL

Fix ExceptionWithCauseStacktraceTest now js unit test reports exception's caused-by chain.
Fix ExceptionWithCauseStacktraceTest now js unit test reports exception's caused-by chain.

PiperOrigin-RevId: 322646163
