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

RESOLVED FIXED in mozilla26

Status

()

Core
JavaScript Engine
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: till, Assigned: jorendorff)

Tracking

Trunk
mozilla26
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

4 years ago
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)

Updated

4 years ago
Assignee: general → jorendorff
(Assignee)

Comment 1

4 years ago
Created attachment 800785 [details] [diff] [review]
bug-913445-v1.patch
Attachment #800785 - Flags: review?(luke)

Updated

4 years ago
Attachment #800785 - Flags: review?(luke) → review+
(Assignee)

Comment 2

4 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/1a9a72fbdc59
https://hg.mozilla.org/mozilla-central/rev/1a9a72fbdc59
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in before you can comment on or make changes to this bug.