Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: ios/web/webui/resources/console.js

Issue 2744963002: Introduce InterfaceEndpointClient(IEC), InterfaceEndpointHandle and (Closed)
Patch Set: Throw the error with the string being the stack trace needed to debug layouts which don't output an… Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ios/web/webui/mojo_js_constants.cc ('k') | ios/web/webui/resources/timer.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Module "console" 5 // Module "console"
6 // 6 //
7 // This module provides basic logging support. The reason to define this module 7 // This module provides basic logging support. The reason to define this module
8 // to forward calls to the |console| object exposed by the browser, instead of 8 // to forward calls to the |console| object exposed by the browser, instead of
9 // using that object directly: mojo JS bindings are currently loaded using gin 9 // using that object directly: mojo JS bindings are currently loaded using gin
10 // and the |console| object is not always available. When the Mojo JS bindings 10 // and the |console| object is not always available.
11 // move away from gin, this module could be removed. 11 //
12 // TODO(crbug.com/703380): When the Mojo JS bindings move away from gin,
13 // this module could be removed.
12 14
13 define("console", [], function() { 15 define("console", [], function() {
14 /** 16 /**
15 * Logs a message to the console. 17 * Logs a message to the console.
16 * @param {string} message to log. 18 * @param {string} message to log.
17 */ 19 */
18 function log(message) { 20 function log(message) {
19 console.log(message); 21 console.log(message);
20 } 22 }
21 23
22 var exports = {}; 24 var exports = {};
23 exports.log = log; 25 exports.log = log;
24 return exports; 26 return exports;
25 }); 27 });
OLDNEW
« no previous file with comments | « ios/web/webui/mojo_js_constants.cc ('k') | ios/web/webui/resources/timer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698