-- @runtimes lua54 luajit local h = require("harness") local m = require("main") h.describe("共享 upvalue", function() h.it("两个闭包看到同一变量", function() local r = m.run(function() end) h.eq(r.first, 1) h.eq(r.second, 2) h.eq(r.third, 2) end) end) h.run()