@@ -1402,7 +1402,7 @@ namespace Sass {
14021402 Signature variable_exists_sig = " variable-exists($name)" ;
14031403 BUILT_IN (variable_exists)
14041404 {
1405- string s = unquote (ARG (" $name" , String_Constant)->value ());
1405+ string s = Util::normalize_underscores ( unquote (ARG (" $name" , String_Constant)->value () ));
14061406
14071407 if (d_env.has (" $" +s)) {
14081408 return new (ctx.mem ) Boolean (pstate, true );
@@ -1415,7 +1415,7 @@ namespace Sass {
14151415 Signature global_variable_exists_sig = " global-variable-exists($name)" ;
14161416 BUILT_IN (global_variable_exists)
14171417 {
1418- string s = unquote (ARG (" $name" , String_Constant)->value ());
1418+ string s = Util::normalize_underscores ( unquote (ARG (" $name" , String_Constant)->value () ));
14191419
14201420 if (d_env.global_frame_has (" $" +s)) {
14211421 return new (ctx.mem ) Boolean (pstate, true );
@@ -1428,7 +1428,7 @@ namespace Sass {
14281428 Signature function_exists_sig = " function-exists($name)" ;
14291429 BUILT_IN (function_exists)
14301430 {
1431- string s = unquote (ARG (" $name" , String_Constant)->value ());
1431+ string s = Util::normalize_underscores ( unquote (ARG (" $name" , String_Constant)->value () ));
14321432
14331433 if (d_env.global_frame_has (s+" [f]" )) {
14341434 return new (ctx.mem ) Boolean (pstate, true );
@@ -1441,7 +1441,7 @@ namespace Sass {
14411441 Signature mixin_exists_sig = " mixin-exists($name)" ;
14421442 BUILT_IN (mixin_exists)
14431443 {
1444- string s = unquote (ARG (" $name" , String_Constant)->value ());
1444+ string s = Util::normalize_underscores ( unquote (ARG (" $name" , String_Constant)->value () ));
14451445
14461446 if (d_env.global_frame_has (s+" [m]" )) {
14471447 return new (ctx.mem ) Boolean (pstate, true );
@@ -1467,7 +1467,7 @@ namespace Sass {
14671467 Signature call_sig = " call($name, $args...)" ;
14681468 BUILT_IN (call)
14691469 {
1470- string name = unquote (ARG (" $name" , String_Constant)->value ());
1470+ string name = Util::normalize_underscores ( unquote (ARG (" $name" , String_Constant)->value () ));
14711471 List* arglist = new (ctx.mem ) List (*ARG (" $args" , List));
14721472
14731473 Arguments* args = new (ctx.mem ) Arguments (pstate);
0 commit comments