LibJS: Replace $gc() hack with a NativeFunction on the global object

To make this work, also start passing Interpreter& to native functions.
This commit is contained in:
Andreas Kling 2020-03-12 20:04:54 +01:00
parent 9ad17d4674
commit d1d136b4e5
Notes: sideshowbarker 2024-07-19 08:20:17 +09:00
5 changed files with 12 additions and 12 deletions

View file

@ -30,7 +30,7 @@
namespace JS {
NativeFunction::NativeFunction(AK::Function<Value(Vector<Argument>)> native_function)
NativeFunction::NativeFunction(AK::Function<Value(Interpreter&, Vector<Argument>)> native_function)
: m_native_function(move(native_function))
{
}