Index: ios/web/test/data/mojo_test.js |
diff --git a/ios/web/test/data/mojo_test.js b/ios/web/test/data/mojo_test.js |
index 27a3f355981d87dc4a3862573d269f76378a9f64..a41a743ea5c628bcfd8561f498552b2568239989 100644 |
--- a/ios/web/test/data/mojo_test.js |
+++ b/ios/web/test/data/mojo_test.js |
@@ -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'); |
}); |