aboutsummaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-12-29 10:23:02 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-12-29 10:23:02 -0300
commit59e565d9555c07e82808d8c1db8f4f4d159b5e5c (patch)
tree7dced733d2e01a6060d656afad903539ac2fedc9 /ldebug.c
parent6188f3a654c0380db08eb40a5465ce8e71c784f5 (diff)
downloadlua-59e565d9555c07e82808d8c1db8f4f4d159b5e5c.tar.gz
lua-59e565d9555c07e82808d8c1db8f4f4d159b5e5c.tar.bz2
lua-59e565d9555c07e82808d8c1db8f4f4d159b5e5c.zip
No need to recheck close method before calling it
A to-be-closed variable is constant and it must have a close metamethod when it is created. A program has to go out of its way (e.g., by changing the variable's metamethod) to invalidate that check. So, it is not worth to test that again. If the program tampers with the metamethod, Lua will raise a regular error when attempting to call it.
Diffstat (limited to 'ldebug.c')
0 files changed, 0 insertions, 0 deletions