Skip to content

Releases: townewgokgok/luacoro-js

New features: Error handling / Golang-like defer

12 Apr 05:42
Compare
Choose a tag to compare

Error handling

Can handle errors just like normal functions.

See src/index.spec.ts

Golang-like defer

luacoro.defer works like Golang's defer.
Useful to clean up scene scoped resources.

Defer functions must be normal functions.
Not yieldable within them.

See src/index.spec.ts