aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authordaurnimator <quae@daurnimator.com>2018-02-17 11:12:26 +1100
committerdaurnimator <quae@daurnimator.com>2018-02-17 11:17:54 +1100
commit123dfc7ca0cea702a552bc24614e66b4144cca07 (patch)
treecb8d0b2afd0fb734cddf65ad1d7fae10b338d718 /README.md
parentaa6a466bea35db093a0131dce0612a4de428306c (diff)
downloadfengari-123dfc7ca0cea702a552bc24614e66b4144cca07.tar.gz
fengari-123dfc7ca0cea702a552bc24614e66b4144cca07.tar.bz2
fengari-123dfc7ca0cea702a552bc24614e66b4144cca07.zip
Rename cpath to jspath
Diffstat (limited to 'README.md')
-rw-r--r--README.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/README.md b/README.md
index 959b4f8..fed507c 100644
--- a/README.md
+++ b/README.md
@@ -68,13 +68,14 @@ In the browser `require` and `package.loadlib` try to find a file by making sync
- [Weak tables](http://www.lua.org/manual/5.3/manual.html#2.5.2)
-### _Differences_ from C API
+### _Differences_
+- `package.jspath` instead of `package.cpath`
+- `LUA_JSPATH_DEFAULT` instead of `LUA_CPATH_DEFAULT` (and contains .js extensions rather than .so or .dll extensions)
- `lua_tointegerx` and `lua_tonumberx` do not have out-parameters indicating conversion success. Instead, ``false`` is returned when conversion fails.
- `luaL_execresult` takes an extra argument: an error object. The error object should have a fields `status`, `signal` and `errno`.
- `luaL_fileresult` takes an extra argument: an error object. The error object should have a field `errno`.
-
## Extensions
### `dv = lua_todataview(L, idx)`