builtins.toJSON: fix __toString usage
(cherry picked from commit e583df52800b4baa1564b027fe3b83a21756c2cc)
This commit is contained in:
parent
6c90e3b9ac
commit
3130aafd01
5 changed files with 29 additions and 8 deletions
|
|
@ -9,4 +9,5 @@ builtins.toJSON
|
|||
h = [ "a" [ "b" { "foo\nbar" = {}; } ] ];
|
||||
i = 1 + 2;
|
||||
j = 1.44;
|
||||
k = { __toString = self: self.a; a = "foo"; };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue