Skip to content

Commit 41eff7b

Browse files
committed
Rename exception to val converting function.
1 parent 233f5a8 commit 41eff7b

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/lib/libemval.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,8 @@ var LibraryEmVal = {
482482
}));
483483
},
484484

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: () => {
487487
try {
488488
// Use __cxa_rethrow which already has mechanism for generating
489489
// user-friendly error message and stacktrace from C++ exception

src/lib/libsigs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,12 +339,12 @@ sigs = {
339339
_emval_await__sig: 'pp',
340340
_emval_call__sig: 'dpppp',
341341
_emval_call_method__sig: 'dppppp',
342-
_emval_coro_exception_to_error__sig: 'p',
343342
_emval_coro_make_promise__sig: 'ppp',
344343
_emval_coro_suspend__sig: 'vpp',
345344
_emval_decref__sig: 'vp',
346345
_emval_delete__sig: 'ipp',
347346
_emval_equals__sig: 'ipp',
347+
_emval_from_current_cxa_exception__sig: 'p',
348348
_emval_get_global__sig: 'pp',
349349
_emval_get_method_caller__sig: 'pipi',
350350
_emval_get_module_property__sig: 'pp',

system/include/emscripten/val.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ EM_VAL _emval_iter_next(EM_VAL iterator);
118118

119119
#if __cplusplus >= 202002L
120120
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();
122122
EM_VAL _emval_coro_make_promise(EM_VAL *resolve, EM_VAL *reject);
123123
#endif
124124

@@ -793,7 +793,7 @@ class val::promise_type {
793793
} catch (const val& error) {
794794
reject(error);
795795
} catch (...) {
796-
val error = val(internal::_emval_coro_exception_to_error());
796+
val error = val(internal::_emval_from_current_cxa_exception());
797797
reject(error);
798798
}
799799
}

0 commit comments

Comments
 (0)