diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-02 11:24:10 +0200 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-02 11:24:10 +0200 |
| commit | 66499a912cbf7ca0205b68a17b430070ef94bc49 (patch) | |
| tree | 7b7f3d4873e44311063063436fbdca65b194f73a /deep_test | |
| parent | 84889233bfec4ad11ee1160fe63acbbbba7275e7 (diff) | |
| download | lanes-66499a912cbf7ca0205b68a17b430070ef94bc49.tar.gz lanes-66499a912cbf7ca0205b68a17b430070ef94bc49.tar.bz2 lanes-66499a912cbf7ca0205b68a17b430070ef94bc49.zip | |
InterCopyContext always raises errors in a non-Keeper state
Diffstat (limited to 'deep_test')
| -rw-r--r-- | deep_test/deeptest.lua | 5 |
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" | |||
| 7 | local test_deep = true | 7 | local test_deep = true |
| 8 | local test_clonable = true | 8 | local test_clonable = true |
| 9 | local test_uvtype = "string" | 9 | local test_uvtype = "string" |
| 10 | local nupvals = _VERSION == "Lua 5.4" and 2 or 1 | 10 | local nupvals = _VERSION == "Lua 5.4" and 3 or 1 |
| 11 | 11 | ||
| 12 | local makeUserValue = function( obj_) | 12 | local 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 = |
