aboutsummaryrefslogtreecommitdiff
path: root/testes/code.lua
diff options
context:
space:
mode:
Diffstat (limited to 'testes/code.lua')
-rw-r--r--testes/code.lua6
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
94check(function () -- function does not create upvalues 94check(function () -- function does not create upvalues
95 (function () end){f()} 95 (function () end){f()}
96end, 'CLOSURE', 'NEWTABLE', 'GETTABUP', 'CALL', 'SETLIST', 'CALL', 'RETURN0') 96end, 'CLOSURE', 'NEWTABLE', 'EXTRAARG', 'GETTABUP', 'CALL',
97 'SETLIST', 'CALL', 'RETURN0')
97 98
98check(function (x) -- function creates upvalues 99check(function (x) -- function creates upvalues
99 (function () return x end){f()} 100 (function () return x end){f()}
100end, 'CLOSURE', 'NEWTABLE', 'GETTABUP', 'CALL', 'SETLIST', 'CALL', 'RETURN') 101end, 'CLOSURE', 'NEWTABLE', 'EXTRAARG', 'GETTABUP', 'CALL',
102 'SETLIST', 'CALL', 'RETURN')
101 103
102 104
103-- sequence of LOADNILs 105-- sequence of LOADNILs