As a security precaution, we have turned on the setting "Require API key authentication for API requests" for everyone. If this has broken something, please contact
Last Comment Bug 707061 - Rename js_ValueToString as js::ToString, and make check-for-string-inline the default
: Rename js_ValueToString as js::ToString, and make check-for-string-inline the...
Product: Core
Classification: Components
Component: JavaScript Engine (show other bugs)
: unspecified
: All All
: -- normal (vote)
: mozilla11
Assigned To: Jeff Walden [:Waldo] (remove +bmo to email)
: Jason Orendorff [:jorendorff]
Depends on:
  Show dependency treegraph
Reported: 2011-12-01 19:35 PST by Jeff Walden [:Waldo] (remove +bmo to email)
Modified: 2011-12-07 12:27 PST (History)
1 user (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

Patch (32.36 KB, patch)
2011-12-01 19:35 PST, Jeff Walden [:Waldo] (remove +bmo to email)
luke: review+
Details | Diff | Splinter Review

Description User image Jeff Walden [:Waldo] (remove +bmo to email) 2011-12-01 19:35:01 PST
Created attachment 578480 [details] [diff] [review]

Spec uses ToString, we should too -- it's nicer to read, to boot.  I also went through all js_ValueToString uses and converted them to ToString if their argument might be a string and ToStringSlow if it definitely wasn't.
Comment 1 User image Luke Wagner [:luke] 2011-12-02 08:22:31 PST
Comment on attachment 578480 [details] [diff] [review]


>-             JSString *str = js_ValueToString(cx, Int32Value(JSID_TO_INT(id)));
>+             JSString *str = js_IntToString(cx, JSID_TO_INT(id));

Hah.  What's js_ doing in front of IntToString...
Comment 2 User image Jeff Walden [:Waldo] (remove +bmo to email) 2011-12-07 08:58:17 PST
Comment 3 User image Matt Brubeck (:mbrubeck) 2011-12-07 12:27:23 PST

Note You need to log in before you can comment on or make changes to this bug.