New issue
Advanced search Search tips

Issue 664377 link

Starred by 3 users

Issue metadata

Status: WontFix
Owner:
Closed: Nov 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 405845



Sign in to add a comment

DevTools: function previews for ES6 functions/classes could be better

Project Member Reported by l...@chromium.org, Nov 11 2016

Issue description

A lot of new ways of making functions were introduced in recent versions of Javascript.  Many of them aren't well handled by the console in DevTools.

var baseClass = class {};
var x = [
  function (a = function(){}, b = 1, c = []) {},  // Default arguments
  class abc {  constructor(a, b, c){}  },         // class with constructor
  class def extends baseClass {},                 // class extension,
  class ghi extends function(){} {}               // weird extension
]

When logging x and expanding its properties in the console, the function with default arguments gets cutoff, the constructor's arguments aren't detected, and keywords like extends aren't highlighted in any way.

 

Comment 1 by l...@chromium.org, Nov 11 2016

Blocking: 405845

Comment 2 by l...@chromium.org, Nov 15 2017

Status: WontFix (was: Assigned)

Sign in to add a comment