diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-12 20:04:54 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-12 20:04:54 +0100 |
commit | d1d136b4e5c935ec659fe49fc5e81ca08a969f9e (patch) | |
tree | 77871a5ff1541d49fd77b30e91949799004b8fd2 /Base/home/anon/js | |
parent | 9ad17d4674269fe4c9743ecf0aa4a4e296f9e327 (diff) | |
download | serenity-d1d136b4e5c935ec659fe49fc5e81ca08a969f9e.zip |
LibJS: Replace $gc() hack with a NativeFunction on the global object
To make this work, also start passing Interpreter& to native functions.
Diffstat (limited to 'Base/home/anon/js')
-rw-r--r-- | Base/home/anon/js/forced-gc.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Base/home/anon/js/forced-gc.js b/Base/home/anon/js/forced-gc.js index 70a1da3a43..5ea20bcddd 100644 --- a/Base/home/anon/js/forced-gc.js +++ b/Base/home/anon/js/forced-gc.js @@ -1,5 +1,5 @@ function foo() { var x = {}; - $gc(); + gc(); } foo(); |