aboutsummaryrefslogtreecommitdiff
path: root/deep_test/deeptest.lua
diff options
context:
space:
mode:
Diffstat (limited to 'deep_test/deeptest.lua')
-rw-r--r--deep_test/deeptest.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/deep_test/deeptest.lua b/deep_test/deeptest.lua
index 33de003..09b638c 100644
--- a/deep_test/deeptest.lua
+++ b/deep_test/deeptest.lua
@@ -7,7 +7,7 @@ local dt = lanes.require "deep_test"
7local test_deep = true 7local test_deep = true
8local test_clonable = true 8local test_clonable = true
9local test_uvtype = "string" 9local test_uvtype = "string"
10local nupvals = _VERSION == "Lua 5.4" and 2 or 1 10local nupvals = _VERSION == "Lua 5.4" and 3 or 1
11 11
12local makeUserValue = function( obj_) 12local makeUserValue = function( obj_)
13 if test_uvtype == "string" then 13 if test_uvtype == "string" then
@@ -43,7 +43,8 @@ local performTest = function( obj_)
43 obj_:setuv( 1, makeUserValue( obj_)) 43 obj_:setuv( 1, makeUserValue( obj_))
44 -- lua 5.4 supports multiple uservalues of arbitrary types 44 -- lua 5.4 supports multiple uservalues of arbitrary types
45 if nupvals > 1 then 45 if nupvals > 1 then
46 obj_:setuv( 2, "ENDUV") 46 -- keep uv #2 as nil
47 obj_:setuv( 3, "ENDUV")
47 end 48 end
48 49
49 local t = 50 local t =