Browse Source

* fixed test tw0882.pp for WebAssembly's memory requirements

Nikolay Nikolov 11 months ago
parent
commit
2dd610c140
1 changed files with 7 additions and 1 deletions
  1. 7 1
      tests/webtbs/tw0882.pp

+ 7 - 1
tests/webtbs/tw0882.pp

@@ -1,5 +1,11 @@
 {$D+,I+,L+,P-,Q+,R+,S+,T+,V+,X+,Y+}
 {$D+,I+,L+,P-,Q+,R+,S+,T+,V+,X+,Y+}
-{$M 8192,0,655360}
+
+{$if defined(CPUWASM32)}
+  { use the default memory sizes for the platform }
+{$else}
+  {$M 8192,0,655360}
+{$endif}
+
 PROGRAM TEST;
 PROGRAM TEST;
 CONST
 CONST
         maxBlockSize    = 1 SHL 13;
         maxBlockSize    = 1 SHL 13;