summaryrefslogtreecommitdiff
path: root/test/undefined.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/undefined.lua')
-rw-r--r--test/undefined.lua9
1 files changed, 0 insertions, 9 deletions
diff --git a/test/undefined.lua b/test/undefined.lua
deleted file mode 100644
index efe5f245..00000000
--- a/test/undefined.lua
+++ /dev/null
@@ -1,9 +0,0 @@
--- catch "undefined" global variables
-
-local f=function (t,i) error("undefined global variable `"..i.."'",2) end
-setmetatable(getfenv(),{__index=f})
-
--- an example
-a=1
-c=3
-print(a,b,c) -- `b' is undefined