-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fast-text-encoding usage breaks compatibility with Emscripten based libaries #947
Comments
Hi @curvedriver, Thank you for your report. Our main target is Node.js (which has both As soon as Node v10 goes EOL and we drop its support, the code will be exactly the same as in google-auth-library now. But for the time being, I'll try to make it work. |
@curvedriver The latest released version (v2.10.2) should have this problem fixed. Could you double check if it works for you? Thank you! |
Hi @alexander-fenster What do you think about mapping the
I didn't found any API changes of the Do you think that there would any side-effects? |
@curvedriver I thought of doing it, and the only side effect here is that the browser bundlers (the main audience of Well, maybe these 8K is not a big deal though, given that we'll be able to drop it back after April 30th (when we stop supporting Node.js v10). PR coming. |
Environment details:
OS: Linux
node: 10.23.1
npm: 6.14.10
which requires version
^2.9.2
ofgoogle-gax
Description:
google-gax 2.10.0
introducedfast-text-encoding
, which breaks the compatibility with Emscripten based libaries.gax-nodejs/src/fallback.ts
Line 22 in eed447f
Error
RangeError: Failed to construct 'TextDecoder': The encoding label provided ('utf-16le') is invalid.
Caused by
https://github.com/emscripten-core/emscripten/blob/d7c7aedf45aafb72a8ca617fdfca98311f76525a/src/runtime_strings_extra.js#L38
Similar to:
googleapis/google-auth-library-nodejs#626
The text was updated successfully, but these errors were encountered: