diff options
author | Florian Zeitz <florob@babelmonkeys.de> | 2012-04-29 20:46:35 +0200 |
---|---|---|
committer | Florian Zeitz <florob@babelmonkeys.de> | 2012-04-29 20:46:35 +0200 |
commit | cf4d29f86d722d7398b59c41c190d545e8c7a8c2 (patch) | |
tree | 3a8d224e44427859664fbf23262630f836a8edec /test | |
parent | 46736a33555c51bd5bbba872087b518525dcf1cc (diff) | |
download | luasocket-cf4d29f86d722d7398b59c41c190d545e8c7a8c2.tar.gz luasocket-cf4d29f86d722d7398b59c41c190d545e8c7a8c2.tar.bz2 luasocket-cf4d29f86d722d7398b59c41c190d545e8c7a8c2.zip |
Select loadstring or load for Lua 5.1/5.2 respectively
Diffstat (limited to 'test')
-rw-r--r-- | test/testsrvr.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testsrvr.lua b/test/testsrvr.lua index ff31442..72b93ab 100644 --- a/test/testsrvr.lua +++ b/test/testsrvr.lua | |||
@@ -15,6 +15,6 @@ while 1 do | |||
15 | assert(command, emsg) | 15 | assert(command, emsg) |
16 | assert(control:send(ack)); | 16 | assert(control:send(ack)); |
17 | print(command); | 17 | print(command); |
18 | (load(command))(); | 18 | ((loadstring or load)(command))(); |
19 | end | 19 | end |
20 | end | 20 | end |