diff options
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/outputs/codes_from_doc.lua | 4 | ||||
| -rw-r--r-- | spec/outputs/codes_from_doc_zh.lua | 4 | ||||
| -rw-r--r-- | spec/outputs/import_global.lua | 14 |
3 files changed, 11 insertions, 11 deletions
diff --git a/spec/outputs/codes_from_doc.lua b/spec/outputs/codes_from_doc.lua index 02f36d1..84dfc4e 100644 --- a/spec/outputs/codes_from_doc.lua +++ b/spec/outputs/codes_from_doc.lua | |||
| @@ -409,8 +409,8 @@ local tb = { | |||
| 409 | } | 409 | } |
| 410 | } | 410 | } |
| 411 | do | 411 | do |
| 412 | local math = math | ||
| 413 | local print = print | 412 | local print = print |
| 413 | local math = math | ||
| 414 | print("hello") | 414 | print("hello") |
| 415 | math.random(3) | 415 | math.random(3) |
| 416 | end | 416 | end |
| @@ -2928,8 +2928,8 @@ local tb = { | |||
| 2928 | } | 2928 | } |
| 2929 | } | 2929 | } |
| 2930 | do | 2930 | do |
| 2931 | local math = math | ||
| 2932 | local print = print | 2931 | local print = print |
| 2932 | local math = math | ||
| 2933 | print("hello") | 2933 | print("hello") |
| 2934 | math.random(3) | 2934 | math.random(3) |
| 2935 | end | 2935 | end |
diff --git a/spec/outputs/codes_from_doc_zh.lua b/spec/outputs/codes_from_doc_zh.lua index 87944e0..d4e8b6a 100644 --- a/spec/outputs/codes_from_doc_zh.lua +++ b/spec/outputs/codes_from_doc_zh.lua | |||
| @@ -409,8 +409,8 @@ local tb = { | |||
| 409 | } | 409 | } |
| 410 | } | 410 | } |
| 411 | do | 411 | do |
| 412 | local math = math | ||
| 413 | local print = print | 412 | local print = print |
| 413 | local math = math | ||
| 414 | print("hello") | 414 | print("hello") |
| 415 | math.random(3) | 415 | math.random(3) |
| 416 | end | 416 | end |
| @@ -2922,8 +2922,8 @@ local tb = { | |||
| 2922 | } | 2922 | } |
| 2923 | } | 2923 | } |
| 2924 | do | 2924 | do |
| 2925 | local math = math | ||
| 2926 | local print = print | 2925 | local print = print |
| 2926 | local math = math | ||
| 2927 | print("hello") | 2927 | print("hello") |
| 2928 | math.random(3) | 2928 | math.random(3) |
| 2929 | end | 2929 | end |
diff --git a/spec/outputs/import_global.lua b/spec/outputs/import_global.lua index 08a90e2..c748c78 100644 --- a/spec/outputs/import_global.lua +++ b/spec/outputs/import_global.lua | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | do | 1 | do |
| 2 | local math = math | ||
| 3 | local print = print | 2 | local print = print |
| 3 | local math = math | ||
| 4 | print("hello") | 4 | print("hello") |
| 5 | math.random(10) | 5 | math.random(10) |
| 6 | end | 6 | end |
| @@ -33,19 +33,19 @@ end | |||
| 33 | do | 33 | do |
| 34 | local func | 34 | local func |
| 35 | func = function(x, y) | 35 | func = function(x, y) |
| 36 | local type = type | ||
| 36 | local tostring = tostring | 37 | local tostring = tostring |
| 37 | local print = print | 38 | local print = print |
| 38 | local type = type | ||
| 39 | return type(x, tostring(y, print)) | 39 | return type(x, tostring(y, print)) |
| 40 | end | 40 | end |
| 41 | func(1, 2) | 41 | func(1, 2) |
| 42 | end | 42 | end |
| 43 | do | 43 | do |
| 44 | local print = print | 44 | local xpcall = xpcall |
| 45 | local tostring = tostring | ||
| 46 | local func = func | 45 | local func = func |
| 47 | local world = world | 46 | local world = world |
| 48 | local xpcall = xpcall | 47 | local tostring = tostring |
| 48 | local print = print | ||
| 49 | xpcall(function() | 49 | xpcall(function() |
| 50 | return func("hello " .. tostring(world)) | 50 | return func("hello " .. tostring(world)) |
| 51 | end, function(err) | 51 | end, function(err) |
| @@ -77,16 +77,16 @@ do | |||
| 77 | end | 77 | end |
| 78 | end | 78 | end |
| 79 | do | 79 | do |
| 80 | local lowercase = lowercase | ||
| 80 | local tostring = tostring | 81 | local tostring = tostring |
| 81 | local Uppercase = Uppercase | 82 | local Uppercase = Uppercase |
| 82 | local lowercase = lowercase | ||
| 83 | local foobar = "all " .. tostring(lowercase) | 83 | local foobar = "all " .. tostring(lowercase) |
| 84 | FooBar = "pascal case" | 84 | FooBar = "pascal case" |
| 85 | FOOBAR = "all " .. tostring(Uppercase) | 85 | FOOBAR = "all " .. tostring(Uppercase) |
| 86 | end | 86 | end |
| 87 | do | 87 | do |
| 88 | local print = print | ||
| 89 | local setmetatable = setmetatable | 88 | local setmetatable = setmetatable |
| 89 | local print = print | ||
| 90 | do | 90 | do |
| 91 | local _class_0 | 91 | local _class_0 |
| 92 | local _base_0 = { } | 92 | local _base_0 = { } |
