diff options
author | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-03-14 08:30:45 +0100 |
---|---|---|
committer | Benoit Giannangeli <benoit.giannangeli@boursorama.fr> | 2017-03-14 09:09:52 +0100 |
commit | 0d51854b27836c485d0bac7a1a28c19fc61496f1 (patch) | |
tree | 0e5fc99d7b205b79ed10eab1f4ce49aa39f7ae59 /src/lua.js | |
parent | f72e2999b92084a8e2d0cef8bfb3b52607bc8dd5 (diff) | |
download | fengari-0d51854b27836c485d0bac7a1a28c19fc61496f1.tar.gz fengari-0d51854b27836c485d0bac7a1a28c19fc61496f1.tar.bz2 fengari-0d51854b27836c485d0bac7a1a28c19fc61496f1.zip |
Use emscripten's utf8tojs string function
Diffstat (limited to 'src/lua.js')
-rw-r--r-- | src/lua.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -133,7 +133,7 @@ class lua_Debug { } const to_luastring = function(str, maxBytesToWrite) { - maxBytesToWrite = maxBytesToWrite !== undefined ? maxBytesToWrite : str.length + 1; + maxBytesToWrite = maxBytesToWrite !== undefined ? maxBytesToWrite : Number.MAX_SAFE_INTEGER; let outU8Array = []; if (!(maxBytesToWrite > 0)) // Parameter maxBytesToWrite is not optional. Negative values, 0, null, undefined and false each don't write out any bytes. |