Failed attempt to use promises on Dart side (but compiles)
Mostly works, but code doesn't get exported (promise.then() doesn't fire in Dart)