Closed Bug 590036 Opened 9 years ago Closed 8 years ago

Make eval(json-like string) fast for arrays too

Categories

(Core :: JavaScript Engine, enhancement)

enhancement
Not set

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: evilpie)

References

Details

Attachments

(1 file)

If a string passed to eval starts with '[', it's reasonable to try the JSON parser.  We did this for '(' in bug 578216.
We should work out the test failures in bug 578216 first, though!
Assignee: general → evilpies
Attached patch v1Splinter Review
This takes about 1/3 of the time and should be safe to do.
Attachment #578897 - Flags: review?(jorendorff)
Comment on attachment 578897 [details] [diff] [review]
v1

Sure, ok.
Attachment #578897 - Flags: review?(jorendorff) → review+
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.