Closed MaxXSoft closed 1 year ago
if let Err(Error::Exception) = ctx.eval::<(), _>("throw 3") { println!("{:?}", ctx.catch()); }
The result of the above code is Int'('3')' but not Int(3).
Int'('3')'
Int(3)
Similarly, the result of the following code
if let Err(Error::Exception) = ctx.eval::<(), _>(r#"throw "3""#) { println!("{:?}", ctx.catch()); }
is String"(\""Ok("3")"\")" but not String(Ok("3")).
String"(\""Ok("3")"\")"
String(Ok("3"))
This PR fixes above issues.
Thanks for the PR, merging!
The result of the above code is
Int'('3')'
but notInt(3)
.Similarly, the result of the following code
is
String"(\""Ok("3")"\")"
but notString(Ok("3"))
.This PR fixes above issues.