diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2022-07-17 16:43:09 -0700 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2022-08-07 21:36:29 -0700 |
commit | f22c98e8e387bd320b919ea34a18860341173239 (patch) | |
tree | 5bd84886650e7aa306dfcfec35ce5e5c130714a8 | |
parent | 2192739168ee28cec7fa1663ff6f6fb95e1ce86c (diff) | |
download | gjs-f22c98e8e387bd320b919ea34a18860341173239.tar.gz |
deprecation: Refer to TextDecoder in ByteArray toString message
Instead of recommending to call ByteArray.toString(), we should
recommend using TextDecoder to convert Uint8Array to a string.
-rw-r--r-- | gjs/deprecation.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gjs/deprecation.cpp b/gjs/deprecation.cpp index c0382d59..ca034d9f 100644 --- a/gjs/deprecation.cpp +++ b/gjs/deprecation.cpp @@ -34,8 +34,7 @@ const char* messages[] = { "this would have interpreted the bytes of the array as a string, but that " "is nonstandard. In the future this will return the bytes as " "comma-separated digits. For the time being, the old behavior has been " - "preserved, but please fix your code anyway to explicitly call ByteArray" - ".toString(array).\n" + "preserved, but please fix your code anyway to use TextDecoder.\n" "(Note that array.toString() may have been called implicitly.)", // DeprecatedGObjectProperty: |