mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
Everywhere: Convert VM::call() to JS::call()
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 20:23:01 +09:00
Author: https://github.com/mjz19910 Commit: https://github.com/SerenityOS/serenity/commit/1ef633472b7 Pull-request: https://github.com/SerenityOS/serenity/pull/12067 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/linusg ✅
@@ -63,7 +63,7 @@ JS_DEFINE_NATIVE_FUNCTION(ReflectObject::apply)
|
||||
|
||||
// 3. Perform PrepareForTailCall().
|
||||
// 4. Return ? Call(target, thisArgument, args).
|
||||
return TRY(vm.call(target.as_function(), this_argument, move(args)));
|
||||
return TRY(call(global_object, target.as_function(), this_argument, move(args)));
|
||||
}
|
||||
|
||||
// 28.1.2 Reflect.construct ( target, argumentsList [ , newTarget ] ), https://tc39.es/ecma262/#sec-reflect.construct
|
||||
|
||||
Reference in New Issue
Block a user