@@ -8740,12 +8740,12 @@ def test_exceptions_rethrow_stack_trace_and_message(self, wasm_eh):
8740
8740
rethrow_src1 = r'''
8741
8741
#include <stdexcept>
8742
8742
8743
- void bar () {
8743
+ void important_function () {
8744
8744
throw std::runtime_error("my message");
8745
8745
}
8746
8746
void foo() {
8747
8747
try {
8748
- bar ();
8748
+ important_function ();
8749
8749
} catch (...) {
8750
8750
throw; // rethrowing by throw;
8751
8751
}
@@ -8758,12 +8758,12 @@ def test_exceptions_rethrow_stack_trace_and_message(self, wasm_eh):
8758
8758
rethrow_src2 = r'''
8759
8759
#include <stdexcept>
8760
8760
8761
- void bar () {
8761
+ void important_function () {
8762
8762
throw std::runtime_error("my message");
8763
8763
}
8764
8764
void foo() {
8765
8765
try {
8766
- bar ();
8766
+ important_function ();
8767
8767
} catch (...) {
8768
8768
auto e = std::current_exception();
8769
8769
std::rethrow_exception(e); // rethrowing by std::rethrow_exception
@@ -8783,10 +8783,10 @@ def test_exceptions_rethrow_stack_trace_and_message(self, wasm_eh):
8783
8783
self.set_setting('ASSERTIONS', 1)
8784
8784
err = self.do_run(rethrow_src1, assert_all=True, assert_returncode=NON_ZERO,
8785
8785
expected_output=rethrow_stack_trace_checks, regex=True)
8786
- self.assertNotContained('bar ', err)
8786
+ self.assertNotContained('important_function ', err)
8787
8787
err = self.do_run(rethrow_src2, assert_all=True, assert_returncode=NON_ZERO,
8788
8788
expected_output=rethrow_stack_trace_checks, regex=True)
8789
- self.assertNotContained('bar ', err)
8789
+ self.assertNotContained('important_function ', err)
8790
8790
8791
8791
@requires_node
8792
8792
def test_jsrun(self):
0 commit comments