New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 751170 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner: ----
Closed: Dec 18
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

JS bindings: allow impl of a mojo method to return a simple value instead of a Promise.

Project Member Reported by yzshen@chromium.org, Aug 1 2017

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};
}


 
Status: Fixed (was: Untriaged)
Current bindings work this way.

Sign in to add a comment