Closed Bug 913445 Opened 11 years ago Closed 11 years ago

Print something less confusing than "null" for non-stringifiable values in the shell

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla26

People

(Reporter: till, Assigned: jorendorff)

Details

Attachments

(1 file)

In the shell, executing "Object.create(null)" prints "null". Ideally, we would instead print something that informs about the object not having toString and valueOf methods.

To wit, d8 print "<string conversion failed>", which seems sensible to me.
Assignee: general → jorendorff
Attachment #800785 - Flags: review?(luke)
Attachment #800785 - Flags: review?(luke) → review+
https://hg.mozilla.org/mozilla-central/rev/1a9a72fbdc59
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: