diff options
author | Andreas Kling <kling@serenityos.org> | 2021-06-10 23:17:29 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-10 23:17:29 +0200 |
commit | 93a07ba962c49900845aaebf8992c1d2d10b0044 (patch) | |
tree | 03cfe170f37a3b15ad634530df0a6c47a84cdf79 /Userland/Libraries/LibJS/Runtime/ReflectObject.cpp | |
parent | f5feb1d2cd1198eb681592361340c5b02779524f (diff) | |
download | serenity-93a07ba962c49900845aaebf8992c1d2d10b0044.zip |
LibJS: Remove GlobalObject& argument from VM::construct()
We can just get the global object from the constructor function.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ReflectObject.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ReflectObject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp b/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp index 04d17be774..b61e99eea0 100644 --- a/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp +++ b/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp @@ -96,7 +96,7 @@ JS_DEFINE_NATIVE_FUNCTION(ReflectObject::construct) } new_target = &new_target_value.as_function(); } - return vm.construct(*target, *new_target, move(arguments), global_object); + return vm.construct(*target, *new_target, move(arguments)); } JS_DEFINE_NATIVE_FUNCTION(ReflectObject::define_property) |