From bc551517877adddf119a1dc27b9a02fc9e2eac60 Mon Sep 17 00:00:00 2001 From: xzyfer Date: Sun, 17 Mar 2019 13:06:02 +1100 Subject: [PATCH] Fix mixin-exists and function-exists in local scopes Spec https://github.com/sass/sass-spec/pull/1362 Fixes https://github.com/sass/libsass/issues/2831 --- src/fn_miscs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fn_miscs.cpp b/src/fn_miscs.cpp index 4ffee2b3a..7b5d3ddc4 100644 --- a/src/fn_miscs.cpp +++ b/src/fn_miscs.cpp @@ -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 { @@ -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 { @@ -247,4 +247,4 @@ namespace Sass { } -} \ No newline at end of file +}