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)
Core
JavaScript Engine
Tracking
()
RESOLVED
INCOMPLETE
People
(Reporter: bbenvie, Unassigned)
References
Details
Example: `5..toSource()` incorrectly returns "(new Number(5))" instead of "5" or "(5)".
Reporter | ||
Comment 1•11 years ago
|
||
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 | ||
Updated•10 years ago
|
Assignee: general → nobody
Updated•2 years ago
|
Severity: normal → S3
Updated•10 months ago
|
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.
Description
•