Closed Bug 460333 Opened 16 years ago Closed 16 years ago

Implement toJSON for primitive wrapper classes

Categories

(Core :: JavaScript Engine, defect, P1)

x86
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla1.9.1b2

People

(Reporter: sayrer, Assigned: sayrer)

References

Details

Attachments

(1 file, 1 obsolete file)

Pretty straightforward, also requires Date.toISOString() from ES3.1
Assignee: general → sayrer
Attached patch toJSON + toISOString + tests (obsolete) (deleted) — Splinter Review
Attached patch toJSON + toISOString + tests (deleted) — Splinter Review
Attachment #343446 - Flags: review?(brendan)
Priority: -- → P1
Target Milestone: --- → mozilla1.9.1b2
Attachment #343445 - Attachment is obsolete: true
Comment on attachment 343446 [details] [diff] [review] toJSON + toISOString + tests Brian, can you field this one? I've got an overflowing queue of stuff to do. Thanks. >+ return date_utc_format(cx, vp, &print_gmt_string); ... >+ return date_utc_format(cx, vp, &print_iso_string); Nit: no unary-& needed in C/C++, or used according to house style, for function pointers. /be
Attachment #343446 - Flags: review?(brendan) → review?(crowder)
Comment on attachment 343446 [details] [diff] [review] toJSON + toISOString + tests Is there opposition to growing the PRMJTime year member? Otherwise, and other than Brendan's nit, this looks good to me.
Attachment #343446 - Flags: review?(crowder) → review+
In a beta cycle, PRMJTime seems like a pretty high risk place to touch for little benefit. http://hg.mozilla.org/mozilla-central/rev/8000213aaa7f
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
covered under unittests: dom/src/json/test/json2.js, dom/src/json/test/unit/test_encode.js
Flags: in-testsuite+
Flags: in-litmus-
Depends on: 469627
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: