tarantool / tarantool/tarantool

strict.off () disrespect foreign metatables

Open
#5,745 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.