aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authordenis <denisv@post.skynet.lt>2017-09-07 03:44:37 +0300
committerdenis <denisv@post.skynet.lt>2017-09-07 15:24:00 +0300
commitb482e19917395c842780bd2b8da7731158947c40 (patch)
treed8951ce0846874d36a22f9e0d7bfbc2b0b5993af /README.md
parentfc3d60b9a7cd7b8e46a9b342ec504d84c927aa08 (diff)
downloadfengari-b482e19917395c842780bd2b8da7731158947c40.tar.gz
fengari-b482e19917395c842780bd2b8da7731158947c40.tar.bz2
fengari-b482e19917395c842780bd2b8da7731158947c40.zip
src/lapi.js, src/lauxlib.js: lua_tointeger should return 0 when conversion fails for luaL_ref to work
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/README.md b/README.md
index aa54b96..e2a5e86 100644
--- a/README.md
+++ b/README.md
@@ -40,6 +40,12 @@ In the browser `require` and `package.loadlib` try to find a file by making sync
- `os.execute`
- [Weak tables](http://www.lua.org/manual/5.3/manual.html#2.5.2)
+
+### _Differences_ from C API
+
+- `lua_tointegerx` and `lua_tonumberx` do not have out-parameters indicating conversion success. Instead, ``false`` is returned when conversion fails.
+
+
## Extensions
### `dv = lua_todataview(L, idx)`