JS bindings: allow impl of a mojo method to return a simple value instead of a Promise. |
|
Issue description
At the moment, an impl of mojo "method foo()=>(int result)" looks like this:
function foo() {
return Promise.resolve({result: 42});
}
It would be nice to allow:
function foo() {
return {result: 42};
}
|
|
►
Sign in to add a comment |
|
Comment 1 by oksamyt@chromium.org
, Dec 18