diff options
Diffstat (limited to 'testes/code.lua')
-rw-r--r-- | testes/code.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testes/code.lua b/testes/code.lua index 49d682f8..b2702c61 100644 --- a/testes/code.lua +++ b/testes/code.lua | |||
@@ -93,11 +93,13 @@ end | |||
93 | -- some basic instructions | 93 | -- some basic instructions |
94 | check(function () -- function does not create upvalues | 94 | check(function () -- function does not create upvalues |
95 | (function () end){f()} | 95 | (function () end){f()} |
96 | end, 'CLOSURE', 'NEWTABLE', 'GETTABUP', 'CALL', 'SETLIST', 'CALL', 'RETURN0') | 96 | end, 'CLOSURE', 'NEWTABLE', 'EXTRAARG', 'GETTABUP', 'CALL', |
97 | 'SETLIST', 'CALL', 'RETURN0') | ||
97 | 98 | ||
98 | check(function (x) -- function creates upvalues | 99 | check(function (x) -- function creates upvalues |
99 | (function () return x end){f()} | 100 | (function () return x end){f()} |
100 | end, 'CLOSURE', 'NEWTABLE', 'GETTABUP', 'CALL', 'SETLIST', 'CALL', 'RETURN') | 101 | end, 'CLOSURE', 'NEWTABLE', 'EXTRAARG', 'GETTABUP', 'CALL', |
102 | 'SETLIST', 'CALL', 'RETURN') | ||
101 | 103 | ||
102 | 104 | ||
103 | -- sequence of LOADNILs | 105 | -- sequence of LOADNILs |