Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix test debug.getuservalue

  • Loading branch information...
commit 56224b3c560fdf4a008250ec43a26f99b673d297 1 parent f0f7daa
@fperrad authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 test_lua52/310-debug.t
View
5 test_lua52/310-debug.t
@@ -138,9 +138,10 @@ is(name, nil)
local u = io.tmpfile()
local old = debug.getuservalue(u)
if arg[-1] == 'luajit' then
- todo("LuaJIT: getuservalue", 1)
+ type_ok(old, 'table', "function getuservalue")
+else
+ is(old, nil, "function getuservalue")
end
-is(old, nil, "function getuservalue")
is(debug.getuservalue(true), nil)
local data = {}
r = debug.setuservalue(u, data)
Please sign in to comment.
Something went wrong with that request. Please try again.