diff options
author | daurnimator <quae@daurnimator.com> | 2017-11-12 21:59:58 +1100 |
---|---|---|
committer | daurnimator <quae@daurnimator.com> | 2017-11-12 22:20:08 +1100 |
commit | 0a8bc0b30644c514d822fb32a184318f7353a285 (patch) | |
tree | e04468a215e76add80acafdae97d84a34f7e407c /src/lauxlib.js | |
parent | 81a0e90a502faf9edebc63f54fce51aae4397e72 (diff) | |
download | fengari-0a8bc0b30644c514d822fb32a184318f7353a285.tar.gz fengari-0a8bc0b30644c514d822fb32a184318f7353a285.tar.bz2 fengari-0a8bc0b30644c514d822fb32a184318f7353a285.zip |
Add lua.to_uristring
Diffstat (limited to 'src/lauxlib.js')
-rw-r--r-- | src/lauxlib.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lauxlib.js b/src/lauxlib.js index 8d110ea..62fc6f3 100644 --- a/src/lauxlib.js +++ b/src/lauxlib.js @@ -740,8 +740,7 @@ if (WEB) { } else { lua.lua_pushfstring(L, lua.to_luastring("@%s"), filename); - let path = lua.to_jsstring(filename); - path = encodeURI(path); + let path = lua.to_uristring(filename); let xhr = new XMLHttpRequest(); xhr.open("GET", path, false); // TODO: find a way to load bytes instead of js string |