Closed Bug 879554 Opened 11 years ago Closed 10 months ago

[Boolean/Number/String].prototype.toSource doesn't differentiate between primitives and objects

Categories

(Core :: JavaScript Engine, enhancement, P5)

enhancement

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: bbenvie, Unassigned)

References

Details

Example: `5..toSource()` incorrectly returns "(new Number(5))" instead of "5" or "(5)".
While `toSource` is non-standard, I figured I'd make this bug because it should probably at least be internally consistent. It isn't because of this: "".toSource() === new String("").toSource(); // true [""].toSource() === [new String("")].toSource(); // false
Assignee: general → nobody
Severity: normal → S3
Blocks: sm-meta
Status: NEW → RESOLVED
Type: defect → enhancement
Closed: 10 months ago
Priority: -- → P5
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.