diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-23 01:49:10 +0300 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2021-10-23 02:49:41 +0300 |
commit | e26d9f419bc9f98108c6549b9257ff9f263e3e21 (patch) | |
tree | ae9c9d2f55f06bee06a05dae63b8f98d3068a41b /Userland/Libraries/LibJS/Runtime/ReflectObject.cpp | |
parent | 66770de264bda703ed502e6d3907f6b252c71c3e (diff) | |
download | serenity-e26d9f419bc9f98108c6549b9257ff9f263e3e21.zip |
LibJS: Remove vm.construct and it's usages
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 b597067fa7..b763615224 100644 --- a/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp +++ b/Userland/Libraries/LibJS/Runtime/ReflectObject.cpp @@ -95,7 +95,7 @@ JS_DEFINE_OLD_NATIVE_FUNCTION(ReflectObject::construct) auto args = TRY_OR_DISCARD(create_list_from_array_like(global_object, arguments_list)); // 5. Return ? Construct(target, args, newTarget). - return vm.construct(target.as_function(), new_target.as_function(), move(args)); + return TRY_OR_DISCARD(JS::construct(global_object, target.as_function(), move(args), &new_target.as_function())); } // 28.1.3 Reflect.defineProperty ( target, propertyKey, attributes ), https://tc39.es/ecma262/#sec-reflect.defineproperty |