mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
spelling: truthiness
This commit is contained in:
parent
cc4500b9a6
commit
caf792d61c
1 changed files with 1 additions and 1 deletions
|
@ -714,7 +714,7 @@ struct Compiler
|
||||||
// compile expr to target temp register
|
// compile expr to target temp register
|
||||||
// if the expr (or not expr if onlyTruth is false) is truthful, jump via skipJump
|
// if the expr (or not expr if onlyTruth is false) is truthful, jump via skipJump
|
||||||
// if the expr (or not expr if onlyTruth is false) is falsy, fall through (target isn't guaranteed to be updated in this case)
|
// if the expr (or not expr if onlyTruth is false) is falsy, fall through (target isn't guaranteed to be updated in this case)
|
||||||
// if target is omitted, then the jump behavior is the same - skipJump or fallthrough depending on the truthfulness of the expression
|
// if target is omitted, then the jump behavior is the same - skipJump or fallthrough depending on the truthiness of the expression
|
||||||
void compileConditionValue(AstExpr* node, const uint8_t* target, std::vector<size_t>& skipJump, bool onlyTruth)
|
void compileConditionValue(AstExpr* node, const uint8_t* target, std::vector<size_t>& skipJump, bool onlyTruth)
|
||||||
{
|
{
|
||||||
// Optimization: we don't need to compute constant values
|
// Optimization: we don't need to compute constant values
|
||||||
|
|
Loading…
Add table
Reference in a new issue