tarantool / tarantool/tarantool
strict.off () disrespect foreign metatables
Open
Nobody has claimed this yet.
bug
lua
- Dominant language
- Lua
- Stars
- 3.7k
- Forks
- 419
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 88
Description
strict.off() discards foreign metatable __index and __newinded fields.
Test chunk:
local strict = require "strict"
setmetatable(_G, {
__index = function(_, name, _)
print(name)
end
})
strict.off()
print(nilvar)
os.exit()
Output:
nil
Expected:
nilvar
nil
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the strict.off() entry point and run the Lua reproduction from the issue. Verify how the foreign metatable's __index and __newinded fields behave after strict.off(); done means the provided output includes nilvar followed by nil.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100