Bug 1574855 - Point to TextDecoder and TextEncoder in the doc comment for nsIScriptableUConv. r=m_kato

Differential Revision: https://phabricator.services.mozilla.com/D42463

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Henri Sivonen 2019-08-19 23:37:25 +00:00
Родитель bc574b123c
Коммит d4606e602c
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

@ -14,7 +14,15 @@ interface nsIInputStream;
%} %}
/** /**
* This interface is a unicode encoder for use by scripts * In new code, please use the WebIDL TextDecoder and TextEncoder
* instead. They represent bytes as Uint8Array (or as view to such
* array), which is the current best practice for representing bytes
* in JavaScript.
*
* This interface converts between UTF-16 in JavaScript strings
* and bytes transported as the unsigned value of each byte
* transported in a code unit of the same numeric value in
* a JavaScript string.
* *
* @created 8/Jun/2000 * @created 8/Jun/2000
* @author Makoto Kato [m_kato@ga2.so-net.ne.jp] * @author Makoto Kato [m_kato@ga2.so-net.ne.jp]