diff options
author | Matthew Olsson <matthewcolsson@gmail.com> | 2020-06-25 15:30:58 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-07-01 11:16:37 +0200 |
commit | bda39ef7ab3e05ce0d005721b0622aa52a2a6cbe (patch) | |
tree | f9ae55a919b8f9cafccf558c6c26318b61ad49f9 /Libraries/LibJS/Runtime/FunctionConstructor.h | |
parent | 19411e22d0d988897caf10e07c948eb203166573 (diff) | |
download | serenity-bda39ef7ab3e05ce0d005721b0622aa52a2a6cbe.zip |
LibJS: Explicitly pass a "Function& new_target" to Function::construct
This allows the proxy handler to pass the proper new.target to construct
handlers.
Diffstat (limited to 'Libraries/LibJS/Runtime/FunctionConstructor.h')
-rw-r--r-- | Libraries/LibJS/Runtime/FunctionConstructor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Libraries/LibJS/Runtime/FunctionConstructor.h b/Libraries/LibJS/Runtime/FunctionConstructor.h index 97b0aa9001..ba6eb8962d 100644 --- a/Libraries/LibJS/Runtime/FunctionConstructor.h +++ b/Libraries/LibJS/Runtime/FunctionConstructor.h @@ -39,7 +39,7 @@ public: virtual ~FunctionConstructor() override; virtual Value call(Interpreter&) override; - virtual Value construct(Interpreter&) override; + virtual Value construct(Interpreter&, Function& new_target) override; private: virtual bool has_constructor() const override { return true; } |