Skip to content

e(...) on an empty string returns an object #1966

@pixelass

Description

@pixelass

e() should just be an alias for ~"" but it returns an object when the string is empty.
I would expect it to return the same value.

in:

.test {
    @foo: ~"";
    @bar: e("");
    &:before{
        content: @foo;
    }
    &:after{
        content: @bar;
    }
}

out:

.test:before {
  content: ;
}
.test:after {
  content: [object Object];
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions