Skip to content

Commit bc55151

Browse files
committed
Fix mixin-exists and function-exists in local scopes
Spec sass/sass-spec#1362 Fixes #2831
1 parent c1417f1 commit bc55151

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/fn_miscs.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ namespace Sass {
6363

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

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

79-
if(d_env.has_global(s+"[m]")) {
79+
if(d_env.has(s+"[m]")) {
8080
return SASS_MEMORY_NEW(Boolean, pstate, true);
8181
}
8282
else {
@@ -247,4 +247,4 @@ namespace Sass {
247247

248248
}
249249

250-
}
250+
}

0 commit comments

Comments
 (0)