diff --git a/src/ecmascript/quickjs/attributes.c b/src/ecmascript/quickjs/attributes.c index 01d51a32a..36a0e068d 100644 --- a/src/ecmascript/quickjs/attributes.c +++ b/src/ecmascript/quickjs/attributes.c @@ -198,7 +198,7 @@ js_attributes_namedItem2(JSContext *ctx, JSValueConst this_val, const char *str) auto end = al->end(); for (; it != end; ++it) { - const auto attr = dynamic_cast(*it); + auto attr = dynamic_cast(*it); if (!attr) { continue;