yaml
bool type inconsistent boolean instance evaluation
#5857
Labels
bug
Something isn't working
good first issue
Good for newcomers
PR welcome
A pull request for this issue would be welcome
yaml
Describe the bug
In
yaml/_types/bool.ts
, booleans are evaluated asThis means
Boolean
instances are handled as booleans in yaml but the representation is evaluated asThis will always stringify
Boolean
instances to"true"
, which is probably not the intended behavior.Steps to Reproduce
Expected behavior
new Boolean(false)
should evaluate to"false"
ORBoolean
instances should not be special treated andvalue instanceof Boolean
removed so they are handled as objects.I am leaning torwards the removal. WDYT?
The text was updated successfully, but these errors were encountered: