@@ -296,7 +296,7 @@ namespace Sass {
296296 // The SassScript `>` operation.
297297 bool Value::greaterThan (Value* other, Logger& logger, const SourceSpan& pstate) const
298298 {
299- logger. addFinalStackTrace ( pstate);
299+ callStackFrame csf (logger, pstate);
300300 throw Exception::SassScriptException (
301301 " Undefined operation \" " + inspect ()
302302 + " > " + other->inspect () + " \" ." ,
@@ -307,7 +307,7 @@ namespace Sass {
307307 // The SassScript `>=` operation.
308308 bool Value::greaterThanOrEquals (Value* other, Logger& logger, const SourceSpan& pstate) const
309309 {
310- logger. addFinalStackTrace ( pstate);
310+ callStackFrame csf (logger, pstate);
311311 throw Exception::SassScriptException (
312312 " Undefined operation \" " + inspect ()
313313 + " >= " + other->inspect () + " \" ." ,
@@ -318,7 +318,7 @@ namespace Sass {
318318 // The SassScript `<` operation.
319319 bool Value::lessThan (Value* other, Logger& logger, const SourceSpan& pstate) const
320320 {
321- logger. addFinalStackTrace ( pstate);
321+ callStackFrame csf (logger, pstate);
322322 throw Exception::SassScriptException (
323323 " Undefined operation \" " + inspect ()
324324 + " < " + other->inspect () + " \" ." ,
@@ -329,7 +329,7 @@ namespace Sass {
329329 // The SassScript `<=` operation.
330330 bool Value::lessThanOrEquals (Value* other, Logger& logger, const SourceSpan& pstate) const
331331 {
332- logger. addFinalStackTrace ( pstate);
332+ callStackFrame csf (logger, pstate);
333333 throw Exception::SassScriptException (
334334 " Undefined operation \" " + inspect ()
335335 + " <= " + other->inspect () + " \" ." ,
@@ -340,7 +340,7 @@ namespace Sass {
340340 // The SassScript `*` operation.
341341 Value* Value::times (Value* other, Logger& logger, const SourceSpan& pstate) const
342342 {
343- logger. addFinalStackTrace ( pstate);
343+ callStackFrame csf (logger, pstate);
344344 throw Exception::SassScriptException (
345345 " Undefined operation \" " + inspect ()
346346 + " * " + other->inspect () + " \" ." ,
@@ -351,7 +351,7 @@ namespace Sass {
351351 // The SassScript `%` operation.
352352 Value* Value::modulo (Value* other, Logger& logger, const SourceSpan& pstate) const
353353 {
354- logger. addFinalStackTrace ( pstate);
354+ callStackFrame csf (logger, pstate);
355355 throw Exception::SassScriptException (
356356 " Undefined operation \" " + inspect ()
357357 + " % " + other->inspect () + " \" ." ,
@@ -441,7 +441,7 @@ namespace Sass {
441441 // Assert and return a color or throws if incompatible
442442 const Color* Value::assertColor (Logger& logger, const sass::string& name) const
443443 {
444- logger. addFinalStackTrace ( pstate ());
444+ callStackFrame csf (logger, pstate ());
445445 throw Exception::SassScriptException (
446446 inspect () + " is not a color." ,
447447 logger, pstate (), name);
@@ -450,7 +450,7 @@ namespace Sass {
450450 // Assert and return a function or throws if incompatible
451451 Function* Value::assertFunction (Logger& logger, const sass::string& name)
452452 {
453- logger. addFinalStackTrace ( pstate ());
453+ callStackFrame csf (logger, pstate ());
454454 throw Exception::SassScriptException (
455455 inspect () + " is not a function reference." ,
456456 logger, pstate (), name);
@@ -459,7 +459,7 @@ namespace Sass {
459459 // Assert and return a map or throws if incompatible
460460 Map* Value::assertMap (Logger& logger, const sass::string& name)
461461 {
462- logger. addFinalStackTrace ( pstate ());
462+ callStackFrame csf (logger, pstate ());
463463 throw Exception::SassScriptException (
464464 inspect () + " is not a map." ,
465465 logger, pstate (), name);
@@ -468,7 +468,7 @@ namespace Sass {
468468 // Assert and return a number or throws if incompatible
469469 Number* Value::assertNumber (Logger& logger, const sass::string& name)
470470 {
471- logger. addFinalStackTrace ( pstate ());
471+ callStackFrame csf (logger, pstate ());
472472 throw Exception::SassScriptException (
473473 inspect () + " is not a number." ,
474474 logger, pstate (), name);
@@ -484,7 +484,7 @@ namespace Sass {
484484 // Assert and return a string or throws if incompatible
485485 String* Value::assertString (Logger& logger, const sass::string& name)
486486 {
487- logger. addFinalStackTrace ( pstate ());
487+ callStackFrame csf (logger, pstate ());
488488 throw Exception::SassScriptException (
489489 inspect () + " is not a string." ,
490490 logger, pstate (), name);
@@ -508,7 +508,7 @@ namespace Sass {
508508 // Assert and return an argument list or throws if incompatible
509509 ArgumentList* Value::assertArgumentList (Logger& logger, const sass::string& name)
510510 {
511- logger. addFinalStackTrace ( pstate ());
511+ callStackFrame csf (logger, pstate ());
512512 throw Exception::SassScriptException (
513513 inspect () + " is not an argument list." ,
514514 logger, pstate (), name);
0 commit comments