fix: symbol was falsy
This commit is contained in:
parent
75786f39ad
commit
493c54ed39
@ -22,7 +22,7 @@ public final class SymbolValue extends PrimitiveValue {
|
||||
|
||||
@Override public StringValue type() { return StringValue.of("symbol"); }
|
||||
|
||||
@Override public boolean toBoolean() { return false; }
|
||||
@Override public boolean toBoolean() { return true; }
|
||||
@Override public String toString(Environment env) {
|
||||
throw EngineException.ofType("Cannot convert a Symbol value to a string");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user