1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:57:45 +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:
Linus Groh 2022-01-24 19:14:04 +00:00
parent 886d6c62f9
commit e20efaa083
6 changed files with 119 additions and 21 deletions

View file

@ -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;