From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Format:Luau bytecode" |
|---|
| claim | "The Luau loader accepts bytecode versions 3 to 14 (plus the experimental 100) and type-encoding versions 1 to 3; the compiler's default target is 9. Version 0 means the buffer is an error message." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Luau bytecode" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "Luau bytecode and type versions" |
|---|
| underlying_type | "u8" |
|---|
| values | | LBC_VERSION_MIN | "3" |
|---|
| LBC_VERSION_MAX | "14" |
|---|
| LBC_VERSION_TARGET | "9" |
|---|
| LBC_VERSION_CLASSES | "100" |
|---|
| LBC_TYPE_VERSION_MIN | "1" |
|---|
| LBC_TYPE_VERSION_MAX | "3" |
|---|
| LBC_TYPE_VERSION_TARGET | "3" |
|---|
|
|---|
| complete | true |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "LuauBytecodeTag enum LBC_VERSION_MIN/MAX/TARGET/CLASSES and LBC_TYPE_VERSION_*" |
|---|
| repo | "https://github.com/luau-lang/luau" |
|---|
| commit | "9d7748a4f324213a18cb8283fa2a77c330225fa0" |
|---|
| path | "Common/include/Luau/Bytecode.h" |
|---|
| lines | "538-545" |
|---|
|
| type | "source" |
|---|
| detail | "loadsafe reads version, rejects outside range with 'bytecode version mismatch', then reads the type version byte when version >= 4" |
|---|
| repo | "https://github.com/luau-lang/luau" |
|---|
| commit | "9d7748a4f324213a18cb8283fa2a77c330225fa0" |
|---|
| path | "VM/src/lvmload.cpp" |
|---|
| lines | "323-355" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Version bytes" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-19T00:20:28.418Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T01:51:36.771Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read Bytecode.h (LBC_VERSION_MIN 3, MAX 14, TARGET 9, CLASSES 100, LBC_TYPE_VERSION 1..3 target 3) and VM/src/lvmload.cpp loadsafe at the cited commit: version 0 returns the rest as error message; versions outside [3,14] other than 100 give 'bytecode version mismatch'; type version byte read when version >= 4. Matches. The header comment adds that the compiler may emit a higher version than TARGET when flags are enabled." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T17:38:57.513Z" |
|---|
| summary | "Mark complete: all seven LBC_VERSION_*/LBC_TYPE_VERSION_* constants at Bytecode.h 538-545 are listed" |
|---|
| changed | |
|---|
|
|
|---|