We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13856f9 commit 3a27ecbCopy full SHA for 3a27ecb
src/bind.cpp
@@ -218,7 +218,9 @@ namespace Sass {
218
Map_Obj argmap = Cast<Map>(a->value());
219
220
for (auto key : argmap->keys()) {
221
- std::string param = "$" + unquote(Cast<String_Constant>(key)->value());
+ String_Constant_Ptr val = Cast<String_Constant>(key);
222
+ if (val == NULL) throw Exception::InvalidVarKwdType(key->pstate(), key->inspect(), a);
223
+ std::string param = "$" + unquote(val->value());
224
225
if (!param_map.count(param)) {
226
std::stringstream msg;
0 commit comments