Repository navigation
The platform was raw-read, so a host with a metatable answered nothing - #3
Merged
Merged
Conversation
…d nothing
`Native.Reach` did `rawget(_G, 'Open77')`. That is wrong twice over. `rawget`
skips a metatable, so a host exposing the namespace through an `__index`
accessor answers nil; and `_G` is not necessarily the chunk's `_ENV`, so a host
that hands a resource its own environment answers nil again.
Under either arrangement EVERY wrapper in this library takes its absent-native
path, and a consumer's feature simply stops with no refusal anybody can see.
That is not hypothetical: opx_infinity's name tags disappeared the day its
client half moved onto Store, Players and Native, and `pass()` returning early
on `Reach('players.nearby') == nil` is exactly that shape.
It bought nothing. Reading a global that is not there yields nil in Lua and
never raises, which is the only thing `rawget` could have been guarding
against. A plain read goes through `_ENV` and is correct under every
arrangement a host can choose.
The check is the one that was missing: a namespace reachable ONLY through a
metatable must be found, and a platform that is genuinely absent must still
answer nil rather than raise. Mutation tested -- restoring `rawget` fails both.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Native.Reachdidrawget(_G, 'Open77'). Wrong twice over:rawgetskips a metatable, so a host exposing the namespace through an__indexaccessor answers nil;_Gis not necessarily the chunk's_ENV, so a host that hands a resource itsown environment answers nil again.
Under either arrangement every wrapper in this library takes its absent-native path,
and a consumer's feature simply stops — with no refusal anybody can see.
That is not hypothetical.
opx_infinity's name tags disappeared the day its client halfmoved onto
Store,PlayersandNative, and itspass()returning early onReach('players.nearby') == nilis exactly that shape.It bought nothing, either. Reading a global that is not there yields nil in Lua and never
raises — the only thing
rawgetcould have been guarding against. A plain read goesthrough
_ENVand is correct under every arrangement a host can choose.The check that was missing
A namespace reachable only through a metatable must be found, and a platform that is
genuinely absent must still answer nil rather than raise. Mutation tested: restoring
rawgetfails both.547 → 550 checks, 0 failed.
🤖 Generated with Claude Code