Invalid behaviour of luaL_argerror/err_argmsg

  • From: Roman Tsisyk <roman@xxxxxxxxxxxxx>
  • To: luajit <luajit@xxxxxxxxxxxxx>
  • Date: Tue, 03 Feb 2015 17:06:04 +0300

LuaJIT 2.0.3 -- Copyright (C) 2005-2015 Mike Pall. http://luajit.org/
JIT: ON CMOV SSE2 SSE3 SSE4.1 fold cse dce fwd dse narrow loop abc sink fuse

> loadstring('io.open()')()
[string "io.open()"]:1: bad argument #1 to 'open' (string expected, got no 
value) <!-- function name is OK
stack traceback:
        [C]: in function 'open'
        [string "io.open()"]:1: in main chunk
        stdin:1: in main chunk
        [C]: at 0x00404240

> loadstring('return io.open()')()
stdin:1: bad argument #1 to '?' (string expected, got no value)  <!-- function 
name is not detected properly
stack traceback:
        [builtin#109]: at 0x0044a160
        stdin:1: in main chunk
        [C]: at 0x00404240

v2.0.3-57-gdfa173b

-- 
WBR,
Roman Tsisyk <roman@xxxxxxxxxxxxx>
    http://tarantool.org/ - an efficient in-memory data store and a Lua 
application server
    http://try.tarantool.org/ - try your Lua code **online**

Other related posts: