High memory usage in the infinite "while" loop when printing a string to the console.

this code

init = function()
  while true
    print("wait " + system.time())
  end
  print( "PASS")
end

update = function()
end

draw = function()
end

in Firefox 115 windows 8.1 browser it uses a lot of resources (I saw 7 GB RAM used) and Firefox almost crashes.