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() { ...@@ -56,9 +56,8 @@ function whenDomContentLoaded() {
function main() { function main() {
Promise.all([ Promise.all([
whenDomContentLoaded(), getBrowserProxy() getBrowserProxy(), whenDomContentLoaded()
]).then(function(results) { ]).then(function([browserProxy]) {
var browserProxy = results[1];
// Send "syn" so native code should reply with "ack". // Send "syn" so native code should reply with "ack".
browserProxy.handleJsMessage('syn'); 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