summaryrefslogtreecommitdiff
path: root/src/lauxlib.js
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2017-11-12 21:59:58 +1100
committerdaurnimator <quae@daurnimator.com>2017-11-12 22:20:08 +1100
commit0a8bc0b30644c514d822fb32a184318f7353a285 (patch)
treee04468a215e76add80acafdae97d84a34f7e407c /src/lauxlib.js
parent81a0e90a502faf9edebc63f54fce51aae4397e72 (diff)
downloadfengari-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.js3
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