[Webkit-unassigned] [Bug 30888] New: Implementation of String.quote() method
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Oct 28 16:02:47 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=30888
Summary: Implementation of String.quote() method
Product: WebKit
Version: 528+ (Nightly build)
Platform: Macintosh Intel
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: ioseb.dzmanashvili at gmail.com
Ioseb Dzmanashvili <ioseb.dzmanashvili at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #42065| |review?
Flag| |
Created an attachment (id=42065)
--> (https://bugs.webkit.org/attachment.cgi?id=42065)
Implementation of String.quote() method
Hi all,
I've just implemented String.quote() method based on Mozilla's implementation:
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String
Actually this is not standard feature, but as far as it is often very useful to
quote strings with this method and Mozilla already implemented it.
While trying to implement this method I found that there is code in JSON module
that implements string quoting method but was not public. I moved this method
to "JSGlobalObjectFunctions.cpp" (see "quoteString()" function) and changed
JSON method to invoke this global function. "quote()" method uses this global
function as well...
Implementation and test cases are included in patch.
Regards,
Ioseb
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list