Browse Source

+ disallow using sizeof() and bitsizeof() on WebAssembly reference types

Nikolay Nikolov 2 years ago
parent
commit
54af0d32f3
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/pexpr.pas

+ 1 - 0
compiler/pexpr.pas

@@ -460,6 +460,7 @@ implementation
                  { allow helpers for SizeOf and BitSizeOf }
                  if p1.nodetype=typen then
                    ttypenode(p1).helperallowed:=true;
+                 //Writeln(p1.nodetype, p1.resultdef.typ);
                  if (p1.resultdef.typ=forwarddef) then
                    Message1(type_e_type_is_not_completly_defined,tforwarddef(p1.resultdef).tosymname^);
 {$ifdef wasm}