Closed Bug 1106836 Opened 10 years ago Closed 7 years ago

Some native prototypes don't get formatted nicely in console/debugger/etc

Categories

(DevTools :: Console, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: fitzgen, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [polish-backlog])

Attachments

(1 file)

At first, all is well:

  > HTMLAnchorElement.prototype
  HTMLAnchorElementPrototype { toString: toString(), target: Getter, download: Getter, ping: Getter, rel: Getter, relList: Getter, hreflang: Getter, type: Getter, text: Getter, coords: Getter, 17 more… }

But then, some sad stuff:

  > Set.prototype
  [object Set]
  > Map.prototype
  [object Map]

And also, some crazy:

  > Date.prototype
  Date
  > Object.prototype
  Object { , 14 more… }
  > Function.prototype
  function ()
Whiteboard: [polish-backlog]
I think it's probably better to refile this as a console bug;
and then if the variables view or object inspector also need a tweak,
we can file github issues for that.
Component: Developer Tools: Debugger → Developer Tools: Console
For those items listed in comment 0 the new Object Inspector has been updated to handle them nicely in the console.  The new OI hasn't yet landed in the debugger but that is coming soon.
Fixed in Reps/ObjectInspector
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
Blocks: 1565711
Blocks: 1565713
No longer blocks: 1565711
No longer blocks: 1565713
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: