Skip to content

Commit cb77da7

Browse files
committed
Unquoting null should return null
1 parent f90a1b7 commit cb77da7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

functions.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,10 @@ namespace Sass {
760760
Signature unquote_sig = "unquote($string)";
761761
BUILT_IN(sass_unquote)
762762
{
763+
if (dynamic_cast<Null*>(env["$string"])) {
764+
return new (ctx.mem) Null(pstate);
765+
}
766+
763767
To_String to_string(&ctx);
764768
AST_Node* arg = env["$string"];
765769
if (String_Quoted* string_quoted = dynamic_cast<String_Quoted*>(arg)) {

0 commit comments

Comments
 (0)