diff --git a/functions.cpp b/functions.cpp index 1c51f805cb..657fdc1a96 100644 --- a/functions.cpp +++ b/functions.cpp @@ -818,7 +818,7 @@ namespace Sass { error(msg, pstate, backtrace); } catch (...) { throw; } - // return something even if we had an error (-1) + // handle any invalid utf8 errors return new (ctx.mem) Number(pstate, len); } @@ -909,7 +909,7 @@ namespace Sass { error(msg, pstate, backtrace); } catch (...) { throw; } - // return something even if we had an error (-1) + // handle any invalid utf8 errors return new (ctx.mem) Number(pstate, index); } @@ -1379,9 +1379,6 @@ namespace Sass { if (v->concrete_type() == Expression::STRING) { To_String to_string(&ctx); string str(v->perform(&to_string)); - if (ctx.names_to_colors.count(str)) { - return new (ctx.mem) String_Constant(pstate, "color"); - } } return new (ctx.mem) String_Constant(pstate, ARG("$value", Expression)->type()); }