File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -18,16 +18,13 @@ static CALL_ARGS: std::sync::Mutex<Vec<Vec<ArgType>>> = std::sync::Mutex::new(ve
18
18
fn check_exception ( this : & Ctx , err : rquickjs:: Error ) -> anyhow:: Error {
19
19
let s = match err {
20
20
rquickjs:: Error :: Exception => {
21
- // Attempt to catch the exception
22
- let exception_result = this. catch ( ) ;
23
-
24
21
// Check if we got a valid exception or if it's uninitialized (possibly due to async code)
25
22
// - https://github.com/DelSkayn/rquickjs/issues/421
26
23
// - https://github.com/DelSkayn/rquickjs/pull/422
27
24
// - https://github.com/quickjs-ng/quickjs/issues/39
28
25
// - https://github.com/quickjs-ng/quickjs/pull/1038
29
26
30
- match exception_result . into_exception ( ) {
27
+ match this . catch ( ) . into_exception ( ) {
31
28
Some ( err) => {
32
29
let msg = err. message ( ) . unwrap_or_default ( ) ;
33
30
let stack = err. stack ( ) . unwrap_or_default ( ) ;
You can’t perform that action at this time.
0 commit comments