dart:html: Console.log() and its family accept only one argument #19977
Labels
area-web-js
Issues related to JavaScript support for Dart Web, including DDC, dart2js, and JS interop.
library-html
type-enhancement
A request for a change that isn't a bug
web-libraries
Issues impacting dart:html, etc., libraries
With JS, I can write something like:
window.console.log('Debug: ', window, document);
This pretty-prints objects passed in the argument list (instead of
toString()'ed ones).
See https://developer.mozilla.org/en/docs/Web/API/console
The counterpart of Dart, however, only accepts just one Object, and
thus I can't write equivalent code in Dart.
https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart-dom-html.Console
The text was updated successfully, but these errors were encountered: