summaryrefslogtreecommitdiff
path: root/src/ir/properties.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/properties.h')
-rw-r--r--src/ir/properties.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ir/properties.h b/src/ir/properties.h
index 07898169f..4f7fb96ca 100644
--- a/src/ir/properties.h
+++ b/src/ir/properties.h
@@ -417,7 +417,8 @@ bool isGenerative(Expression* curr, FeatureSet features);
inline bool isValidInConstantExpression(Expression* expr, FeatureSet features) {
if (isSingleConstantExpression(expr) || expr->is<GlobalGet>() ||
expr->is<RttCanon>() || expr->is<RttSub>() || expr->is<StructNew>() ||
- expr->is<ArrayNew>() || expr->is<ArrayInit>() || expr->is<I31New>()) {
+ expr->is<ArrayNew>() || expr->is<ArrayInit>() || expr->is<I31New>() ||
+ expr->is<StringConst>()) {
return true;
}