diff options
author | Mark Pulford <mark@kyne.com.au> | 2012-01-19 00:19:47 +1030 |
---|---|---|
committer | Mark Pulford <mark@kyne.com.au> | 2012-03-04 18:54:35 +1030 |
commit | 88bb249473db4e4923e4c27a8e3ece7a77e738ce (patch) | |
tree | 9c7d5d537fb539aca1f17b75c7296d1f6489de22 /tests | |
parent | 1a5460be319ac29af31f201fbf9775340262ba9b (diff) | |
download | lua-cjson-88bb249473db4e4923e4c27a8e3ece7a77e738ce.tar.gz lua-cjson-88bb249473db4e4923e4c27a8e3ece7a77e738ce.tar.bz2 lua-cjson-88bb249473db4e4923e4c27a8e3ece7a77e738ce.zip |
Disable registration of cjson global variable
Disable registration of cjson module table global variable in the
default build. Automatically creating a variable in the global namespace
can cause issues for other software and is no longer recommended with
Lua.
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/test.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test.lua b/tests/test.lua index 19fc1af..152579e 100755 --- a/tests/test.lua +++ b/tests/test.lua | |||
@@ -69,7 +69,7 @@ function load_testdata() | |||
69 | 69 | ||
70 | local big = {} | 70 | local big = {} |
71 | for i = 1, 1100 do | 71 | for i = 1, 1100 do |
72 | big = { { 10, false, true, cjson.null }, "string", a = big } | 72 | big = { { 10, false, true, json.null }, "string", a = big } |
73 | end | 73 | end |
74 | data.deeply_nested_data = big | 74 | data.deeply_nested_data = big |
75 | 75 | ||