Closed
Bug 459300
Opened 17 years ago
Closed 17 years ago
JSON should use internal JS functions where it makes sense
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla1.9.1b2
People
(Reporter: sayrer, Assigned: sayrer)
Details
Attachments
(1 file)
|
7.12 KB,
patch
|
brendan
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 1•17 years ago
|
||
I skipped a few that have macros as their body, will use the macros later if Shark shows call costs hurting.
| Assignee | ||
Updated•17 years ago
|
Attachment #342503 -
Flags: review?(brendan)
Comment 2•17 years ago
|
||
Comment on attachment 342503 [details] [diff] [review]
switch to js_* functions
>diff --git a/js/src/json.cpp b/js/src/json.cpp
>--- a/js/src/json.cpp
>+++ b/js/src/json.cpp
>@@ -98,17 +98,17 @@ struct StringifyClosure
> jsval *s;
> };
>
> static
> JSBool WriteCallback(const jschar *buf, uint32 len, void *data)
Nit, pre-existing: return type goes on same line as visibility/storage-class and other stuff including declarator mode.
Looks good otherwise, thanks.
/be
Attachment #342503 -
Flags: review?(brendan) → review+
| Assignee | ||
Updated•17 years ago
|
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Flags: in-testsuite-
Flags: in-litmus-
You need to log in
before you can comment on or make changes to this bug.
Description
•