-
- Downloads
Bug 1719747 - Part 3: ListFormat::FormatToParts takes a callback. r=gregtatum,tcampbell
As discussed in https://bugzilla.mozilla.org/show_bug.cgi?id=1719747#c6, In Part 1, the ownership of the Span in PartsVector is maintained by ICU. This method adds a callback so js::intl::ListFormat could copy the content of the Span to Spidermonkey, and mozilla::intl::ListFormat could use ScopedICUObject to release the string owned by ICU earlier. Differential Revision: https://phabricator.services.mozilla.com/D123166
Showing
- intl/components/gtest/TestListFormat.cpp 16 additions, 14 deletionsintl/components/gtest/TestListFormat.cpp
- intl/components/src/ListFormat.cpp 14 additions, 13 deletionsintl/components/src/ListFormat.cpp
- intl/components/src/ListFormat.h 14 additions, 7 deletionsintl/components/src/ListFormat.h
- js/src/builtin/intl/ListFormat.cpp 47 additions, 44 deletionsjs/src/builtin/intl/ListFormat.cpp
Loading
Please register or sign in to comment