mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LibJS: Hide gc() dbgln() behind #ifdef __serenity__
This spams to stdout when using Lagom, and is therefore included in test-js output. Don't need that.
This commit is contained in:
parent
592bc1e331
commit
1d7514d51e
1 changed files with 2 additions and 0 deletions
|
@ -193,7 +193,9 @@ void GlobalObject::visit_edges(Visitor& visitor)
|
|||
|
||||
JS_DEFINE_NATIVE_FUNCTION(GlobalObject::gc)
|
||||
{
|
||||
#ifdef __serenity__
|
||||
dbgln("Forced garbage collection requested!");
|
||||
#endif
|
||||
vm.heap().collect_garbage();
|
||||
return js_undefined();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue