From 06556ade2e05ac2cda09ab560ee466fecefb9868 Mon Sep 17 00:00:00 2001 From: xzyfer Date: Sun, 17 Mar 2019 13:47:44 +1100 Subject: [PATCH] Fix get-function doesn't see functions defined in inner scopes This fixes the error reported in #2830 but it appears there is a general issue using `call` with the result of `get-function`. --- src/fn_miscs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fn_miscs.cpp b/src/fn_miscs.cpp index 7b5d3ddc40..4829326f4d 100644 --- a/src/fn_miscs.cpp +++ b/src/fn_miscs.cpp @@ -237,7 +237,7 @@ namespace Sass { } - if (!d_env.has_global(full_name)) { + if (!d_env.has(full_name)) { error("Function not found: " + name, pstate, traces); }