Skip to content

Commit 8963264

Browse files
committed
Merge pull request #1125 from xzyfer/feat/quote-null
Unquoting null should return null
2 parents fec7377 + cb77da7 commit 8963264

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)