LibJS: Make Function and CallFrame aware of their function name

This commit is contained in:
Linus Groh 2020-04-11 12:56:20 +01:00 committed by Andreas Kling
commit eece424694
Notes: sideshowbarker 2024-07-19 07:43:21 +09:00
11 changed files with 39 additions and 22 deletions

View file

@ -30,8 +30,9 @@
namespace JS {
NativeFunction::NativeFunction(AK::Function<Value(Interpreter&)> native_function)
: m_native_function(move(native_function))
NativeFunction::NativeFunction(const FlyString& name, AK::Function<Value(Interpreter&)> native_function)
: m_name(name)
, m_native_function(move(native_function))
{
}