Bug 143430

Summary: Use jsNontrivialString in more places if the string is guaranteed to be 2 or more characters
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, ggaren, joepeck
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
[PATCH] Proposed Fix darin: review+

Joseph Pecoraro
Reported 2015-04-05 17:40:01 PDT
* SUMMARY Use jsNontrivialString in more places if the string is guaranteed to be 2 or more characters. * NOTES - "NaN", "Infinity", and large values with "e" are guaranteed to have 2 or more characters - Symbol's description string is guaranteed to at least have "Symbol()" - A quoted string is guaranteed to have at least the two quotes
Attachments
[PATCH] Proposed Fix (4.20 KB, patch)
2015-04-05 17:40 PDT, Joseph Pecoraro
darin: review+
Joseph Pecoraro
Comment 1 2015-04-05 17:40:54 PDT
Created attachment 250180 [details] [PATCH] Proposed Fix
Darin Adler
Comment 2 2015-04-05 20:05:05 PDT
Comment on attachment 250180 [details] [PATCH] Proposed Fix Symbol::descriptiveString should use makeString instead of StringBuilder.
Joseph Pecoraro
Comment 3 2015-04-08 18:39:11 PDT
Joseph Pecoraro
Comment 4 2015-04-08 18:39:27 PDT
(In reply to comment #2) > Comment on attachment 250180 [details] > [PATCH] Proposed Fix > > Symbol::descriptiveString should use makeString instead of StringBuilder. Will do this separately.
Note You need to log in before you can comment on or make changes to this bug.