musictheory / NilScript

Objective-C-style language superset of JavaScript with a tiny, simple runtime
Other
50 stars 5 forks source link

API should use Promises/async functions #167

Open iccir opened 1 year ago

iccir commented 1 year ago

We should change the API to use Promises rather than (err, result) callbacks.

This includes compile, Compiler.compile, options["before-compile"], and options["after-compile"].