Deno: implement `console` follow the whatwg spec

Created on 14 Dec 2018  路  3Comments  路  Source: denoland/deno

Make the console implementation follow the whatwg specification. I am working on it.

TODO:

  • Logging methods

    • [x] debug/error/info/log/warn

    • [x] clear #1360

    • [x] assert #1335

    • [x] table #1608

    • [x] trace

    • [x] dir/dirxml

    • Counting methods

    • [x] count #1358

    • [x] countReset #1358

    • Grouping methods

    • [x] group #1363

    • [x] groupCollapsed #1452

    • [x] groupEnd #1363

    • Timing methods #1358

    • [x] time

    • [x] timeLog

    • [x] timeEnd

    • other

    • [x] format the input if contain formatting specifiers #1565

Most helpful comment

Please see the discussion in https://github.com/denoland/deno/pull/1355 regarding group/groupEnd

All 3 comments

Please see the discussion in https://github.com/denoland/deno/pull/1355 regarding group/groupEnd

It looks like we're only missing dirXml to have full compatibility. Given that console outputs to terminal I think we might alias dirXml to dir. Opinions?

Displays an interactive tree of the descendant elements of the specified XML/HTML element. If it is not possible to display as an element the JavaScript Object view is shown instead.

So this seems reasonable.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ry picture ry  路  3Comments

xueqingxiao picture xueqingxiao  路  3Comments

ry picture ry  路  3Comments

motss picture motss  路  3Comments

kyeotic picture kyeotic  路  3Comments