diff options
| author | Jordi Vilalta Prat <jvprat@jvprat.com> | 2016-05-18 19:28:08 +0200 |
|---|---|---|
| committer | Jordi Vilalta Prat <jvprat@jvprat.com> | 2016-05-18 19:28:08 +0200 |
| commit | 0e4c9fc887a96a6d5878d7e46cef42ceacf6e7ba (patch) | |
| tree | dcce7528d09abf694c38c606004c49c993e5da10 /compat53/module.lua | |
| parent | c3013bd037d42abec863cc566e3fef1fdf2d0367 (diff) | |
| download | lua-compat-5.3-0e4c9fc887a96a6d5878d7e46cef42ceacf6e7ba.tar.gz lua-compat-5.3-0e4c9fc887a96a6d5878d7e46cef42ceacf6e7ba.tar.bz2 lua-compat-5.3-0e4c9fc887a96a6d5878d7e46cef42ceacf6e7ba.zip | |
Fix loadstring on Lua 5.1
Diffstat (limited to 'compat53/module.lua')
| -rw-r--r-- | compat53/module.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compat53/module.lua b/compat53/module.lua index dad940b..30be6b5 100644 --- a/compat53/module.lua +++ b/compat53/module.lua | |||
| @@ -548,7 +548,7 @@ if lua_version < "5.3" then | |||
| 548 | return chunk | 548 | return chunk |
| 549 | end | 549 | end |
| 550 | 550 | ||
| 551 | M.loadstring = load | 551 | M.loadstring = M.load |
| 552 | 552 | ||
| 553 | function M.loadfile(file, mode, env) | 553 | function M.loadfile(file, mode, env) |
| 554 | mode = mode or "bt" | 554 | mode = mode or "bt" |
