Commit a62168c5 authored by eugenebut's avatar eugenebut Committed by Commit bot

[ios] Use args destructuring in Mojo test promise.

BUG=None

Review-Url: https://codereview.chromium.org/2285043002
Cr-Commit-Position: refs/heads/master@{#419256}
parent 0531c60c
......@@ -56,9 +56,8 @@ function whenDomContentLoaded() {
function main() {
Promise.all([
whenDomContentLoaded(), getBrowserProxy()
]).then(function(results) {
var browserProxy = results[1];
getBrowserProxy(), whenDomContentLoaded()
]).then(function([browserProxy]) {
// Send "syn" so native code should reply with "ack".
browserProxy.handleJsMessage('syn');
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment