这段代码:
try {
try {
throw 1;
} catch (e, s) {
print("$e $s");
throw e;
}
} catch (e2, s2) {
print("$e2 $s2");
}
印刷:
1 #0 main (file:///.../test.dart:34:7)
1 #0 main (file:///.../test.dart:37:7)
所以原始的堆栈跟踪完全丢失了。有没有办法在保留堆栈跟踪的情况下重新抛出?