mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibJS: Take SharedFunctionInstanceData in NativeJavaScriptBackedFunction
Change NativeJavaScriptBackedFunction::create() to accept an already-created GC::Ref<SharedFunctionInstanceData> instead of a FunctionNode const&, removing another point of AST-runtime coupling.
This commit is contained in:
committed by
Andreas Kling
parent
7e85bb251f
commit
ef992b2010
Notes:
github-actions[bot]
2026-02-11 22:58:51 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/ef992b20108 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7896
@@ -16,7 +16,7 @@ class NativeJavaScriptBackedFunction final : public NativeFunction {
|
||||
GC_DECLARE_ALLOCATOR(NativeJavaScriptBackedFunction);
|
||||
|
||||
public:
|
||||
static GC::Ref<NativeJavaScriptBackedFunction> create(Realm&, FunctionNode const& function_node, PropertyKey const& name, i32 length);
|
||||
static GC::Ref<NativeJavaScriptBackedFunction> create(Realm&, GC::Ref<SharedFunctionInstanceData>, PropertyKey const& name, i32 length);
|
||||
|
||||
virtual ~NativeJavaScriptBackedFunction() override = default;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user