summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/NativeFunction.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-25 20:14:17 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-25 20:38:43 +0200
commitb650d11dd323c602a22ef64acd4c8f55dac6804a (patch)
tree061ced00895fd270e1685b485797ea991d4acf13 /Userland/Libraries/LibJS/Runtime/NativeFunction.h
parent08d2ea3facfcf2c842aad4b665cec7729d469d4c (diff)
downloadserenity-b650d11dd323c602a22ef64acd4c8f55dac6804a.zip
LibJS: FunctionEnvironment.[[FunctionObject]] is the *invoked* function
We were setting the wrong [[FunctionObject]] on the environment when going through ProxyObject and BoundFunction.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/NativeFunction.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/NativeFunction.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/NativeFunction.h b/Userland/Libraries/LibJS/Runtime/NativeFunction.h
index 41a5b6ac3e..5b288f0338 100644
--- a/Userland/Libraries/LibJS/Runtime/NativeFunction.h
+++ b/Userland/Libraries/LibJS/Runtime/NativeFunction.h
@@ -34,7 +34,7 @@ protected:
explicit NativeFunction(Object& prototype);
private:
- virtual FunctionEnvironmentRecord* create_environment_record() override final;
+ virtual FunctionEnvironmentRecord* create_environment_record(Function&) override final;
virtual bool is_native_function() const final { return true; }
FlyString m_name;