cheenar / Winx.js

Lightweight, JavaScript Runtime 🦋; Built on V8 🚅; Inspired by Bun.sh 💛
MIT License
4 stars 0 forks source link

[Priority] Exception Handling #5

Open cheenar opened 7 months ago

cheenar commented 7 months ago

Work in 80e736323589fd4617c5b9bfac88f21e9d072cb7 is promising for getting basic JNI support. Big thing here is getting an "embedder" API ahead of basically all of the things that should come with the runtime (e.g. #4 WinterCG support is more important for showing completeness).

Something that is missing, that should have come first, is exception handling. Right now., similar to node, we have some CHECK_ condition that will abort() the program. We may want to be able to gracefully return an exception to JS-land (that can be caught) -- or encapsulate native builtins with safe JS extensions.