Skip to content

Commit a9e874a

Browse files
committed
constant string.const, more global/local tests
1 parent d1e8dbd commit a9e874a

File tree

4 files changed

+175
-123
lines changed

4 files changed

+175
-123
lines changed

src/module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3221,7 +3221,8 @@ export class Module {
32213221
case ExpressionId.Const:
32223222
case ExpressionId.RefNull:
32233223
case ExpressionId.RefFunc:
3224-
case ExpressionId.I31New: return true;
3224+
case ExpressionId.I31New:
3225+
case ExpressionId.StringConst: return true;
32253226
case ExpressionId.Binary: {
32263227
if (this.getFeatures() & FeatureFlags.ExtendedConst) {
32273228
switch (getBinaryOp(expr)) {

0 commit comments

Comments
 (0)