the language's heap doesn't grow anymore during a collection. Instead the collection throws an error to the runtime
This commit is contained in:
@@ -1,6 +0,0 @@
|
||||
a = [];
|
||||
i = 0;
|
||||
while(i<10000):{
|
||||
a[i]= "ciao mondo mmododooddododododododododododdodododododd";
|
||||
i = i+1;
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
fun f() return 1, 2;
|
||||
print((a, b) = f(), '\n');
|
||||
+15
-3
@@ -243,9 +243,21 @@ fun parseAny(ctx) {
|
||||
|
||||
|
||||
tests = [
|
||||
'', '1', '10',
|
||||
'1.@10', '1.10', '"jeje"',
|
||||
'[]', '[1,2,3]', ' [ ] ', ' [ 1 , 2 , 3 ]', '{}', ' { } ', '{"hoy":4}', ' { "hoy" : 4 } '];
|
||||
'',
|
||||
'1',
|
||||
'10',
|
||||
'1.@10',
|
||||
'1.10',
|
||||
'"jeje"',
|
||||
'[]',
|
||||
'[1,2,3]',
|
||||
' [ ] ',
|
||||
' [ 1 , 2 , 3 ]',
|
||||
'{}',
|
||||
' { } ',
|
||||
'{"hoy":4}',
|
||||
' { "hoy" : 4 } '
|
||||
];
|
||||
|
||||
i = 0;
|
||||
while i < count(tests): {
|
||||
|
||||
Reference in New Issue
Block a user