DelSkayn / rquickjs

High level bindings to the quickjs javascript engine
MIT License
431 stars 58 forks source link

Add an Error variant for rust error #283

Closed Sytten closed 3 months ago

Sytten commented 3 months ago

Right now the Error enum is pretty much tied to the runtime, but sometimes we do need to throw stuff from the rust side other than IoError. Unsure what it would look like but Error::Custom(Box<dyn std::error::Error + Send + Sync>) is usually the most basic thing.

Sytten commented 3 months ago

Nvm I found the ctx.throw, I am pretty sure this is was the way it was designed