Skip to content

Commit

Permalink
Fix mixin-exists and function-exists in local scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
xzyfer committed Mar 17, 2019
1 parent c1417f1 commit bc55151
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/fn_miscs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ namespace Sass {

std::string name = Util::normalize_underscores(unquote(ss->value()));

if(d_env.has_global(name+"[f]")) {
if(d_env.has(name+"[f]")) {
return SASS_MEMORY_NEW(Boolean, pstate, true);
}
else {
Expand All @@ -76,7 +76,7 @@ namespace Sass {
{
std::string s = Util::normalize_underscores(unquote(ARG("$name", String_Constant)->value()));

if(d_env.has_global(s+"[m]")) {
if(d_env.has(s+"[m]")) {
return SASS_MEMORY_NEW(Boolean, pstate, true);
}
else {
Expand Down Expand Up @@ -247,4 +247,4 @@ namespace Sass {

}

}
}

0 comments on commit bc55151

Please sign in to comment.