File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
system/include/emscripten Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -482,8 +482,8 @@ var LibraryEmVal = {
482
482
} ) ) ;
483
483
} ,
484
484
485
- _emval_coro_exception_to_error__deps : [ '$Emval' , '__cxa_rethrow' ] ,
486
- _emval_coro_exception_to_error : ( ) => {
485
+ _emval_from_current_cxa_exception__deps : [ '$Emval' , '__cxa_rethrow' ] ,
486
+ _emval_from_current_cxa_exception : ( ) => {
487
487
try {
488
488
// Use __cxa_rethrow which already has mechanism for generating
489
489
// user-friendly error message and stacktrace from C++ exception
Original file line number Diff line number Diff line change @@ -339,12 +339,12 @@ sigs = {
339
339
_emval_await__sig : 'pp' ,
340
340
_emval_call__sig : 'dpppp' ,
341
341
_emval_call_method__sig : 'dppppp' ,
342
- _emval_coro_exception_to_error__sig : 'p' ,
343
342
_emval_coro_make_promise__sig : 'ppp' ,
344
343
_emval_coro_suspend__sig : 'vpp' ,
345
344
_emval_decref__sig : 'vp' ,
346
345
_emval_delete__sig : 'ipp' ,
347
346
_emval_equals__sig : 'ipp' ,
347
+ _emval_from_current_cxa_exception__sig : 'p' ,
348
348
_emval_get_global__sig : 'pp' ,
349
349
_emval_get_method_caller__sig : 'pipi' ,
350
350
_emval_get_module_property__sig : 'pp' ,
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ EM_VAL _emval_iter_next(EM_VAL iterator);
118
118
119
119
#if __cplusplus >= 202002L
120
120
void _emval_coro_suspend (EM_VAL promise, void * coro_ptr);
121
- EM_VAL _emval_coro_exception_to_error ();
121
+ EM_VAL _emval_from_current_cxa_exception ();
122
122
EM_VAL _emval_coro_make_promise (EM_VAL *resolve, EM_VAL *reject);
123
123
#endif
124
124
@@ -793,7 +793,7 @@ class val::promise_type {
793
793
} catch (const val& error) {
794
794
reject (error);
795
795
} catch (...) {
796
- val error = val (internal::_emval_coro_exception_to_error ());
796
+ val error = val (internal::_emval_from_current_cxa_exception ());
797
797
reject (error);
798
798
}
799
799
}
You can’t perform that action at this time.
0 commit comments