feat(phase-14a): Stubs, bitwise fixes, and math return types#140
Merged
davydog187 merged 1 commit intomainfrom Feb 12, 2026
Merged
feat(phase-14a): Stubs, bitwise fixes, and math return types#140davydog187 merged 1 commit intomainfrom
davydog187 merged 1 commit intomainfrom
Conversation
- collectgarbage stub accepting all standard modes - dofile stub raising "not supported in embedded mode" - _VERSION global set to "Lua 5.3" - Global unpack alias for table.unpack - Bitwise string coercion (e.g., "0xff" | 0) - Lua 5.3 shift semantics: negative reverses direction, >=64 yields 0 - Bitwise metamethods: __band, __bor, __bxor, __bnot, __shl, __shr - math.floor/math.ceil return integers instead of floats Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
6c2bb3c to
01e4cff
Compare
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.
Summary
collectgarbagestub accepting all standard modes with plausible return valuesdofilestub raising "not supported in embedded mode"_VERSIONglobal set to"Lua 5.3"unpackalias fortable.unpack"0xff" | 0)__band,__bor,__bxor,__bnot,__shl,__shrmath.floor/math.ceilreturn integers instead of floatsTest plan
_VERSION == "Lua 5.3"(1 test)unpack({10, 20, 30})works as global alias (1 test)🤖 Generated with Claude Code