Set arg table before evaluating LUA_INIT and -e chunks.

This commit is contained in:
Mike Pall
2016-07-17 16:23:49 +02:00
parent 7374046299
commit 92d9ff211a
2 changed files with 60 additions and 44 deletions

View File

@@ -349,6 +349,7 @@ break the Lua/C API and ABI (e.g. <tt>_ENV</tt>).
LuaJIT supports some extensions from Lua&nbsp;5.3:
<ul>
<li>Unicode escape <tt>'\u{XX...}'</tt> embeds the UTF-8 encoding in string literals.</li>
<li>The argument table <tt>arg</tt> can be read (and modified) by <tt>LUA_INIT</tt> and <tt>-e</tt> chunks.</li>
</ul>
<h2 id="exceptions">C++ Exception Interoperability</h2>