Skip to content

Commit f74b141

Browse files
committed
Merge pull request #1337 from xzyfer/fix/1331
Fix the output of Maps with falsey keys and/or values
2 parents 1768b6e + c22938a commit f74b141

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

ast.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ namespace Sass {
15981598

15991599
virtual size_t hash()
16001600
{
1601-
return 0;
1601+
return -1;
16021602
}
16031603

16041604
ATTACH_OPERATIONS()

inspect.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,6 @@ namespace Sass {
339339
bool items_output = false;
340340
append_string("(");
341341
for (auto key : map->keys()) {
342-
if (key->is_invisible()) continue;
343-
if (map->at(key)->is_invisible()) continue;
344342
if (items_output) append_comma_separator();
345343
key->perform(this);
346344
append_colon_separator();

0 commit comments

Comments
 (0)