Skip to content

Number.prototype.valueOf #187

Open
Open
@rwaldron

Description

@rwaldron

This is necessary for deriving the primitive value of a boxed number object:

var n = new Number("1");

n; // [object Number]

n.valueOf(); // 1

Metadata

Metadata

Assignees

Labels

Standards IssueA place where Espruino doesn't conform to the ECMAscript standardlow priority

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions