mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
LibJS: Let WrappedFunction inherit target name and length
This is a normative change in the ShadowRealm spec.
See: b73a1dc
This commit is contained in:
parent
886d6c62f9
commit
e20efaa083
6 changed files with 119 additions and 21 deletions
|
@ -15,7 +15,7 @@ class WrappedFunction final : public FunctionObject {
|
|||
JS_OBJECT(WrappedFunction, FunctionObject);
|
||||
|
||||
public:
|
||||
static WrappedFunction* create(GlobalObject&, Realm& caller_realm, FunctionObject& target_function);
|
||||
static ThrowCompletionOr<WrappedFunction*> create(GlobalObject&, Realm& caller_realm, FunctionObject& target_function);
|
||||
|
||||
WrappedFunction(Realm&, FunctionObject&, Object& prototype);
|
||||
virtual ~WrappedFunction() = default;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue