1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

LibJS: Convert perform_eval to ThrowCompletionOr

This commit is contained in:
Idan Horowitz 2021-09-21 22:16:08 +03:00
parent e24d4c346d
commit 1da8faebf5
4 changed files with 15 additions and 9 deletions

View file

@ -40,7 +40,7 @@ enum class EvalMode {
Direct,
Indirect
};
Value perform_eval(Value, GlobalObject&, CallerMode, EvalMode);
ThrowCompletionOr<Value> perform_eval(Value, GlobalObject&, CallerMode, EvalMode);
// 10.1.13 OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ , internalSlotsList ] ), https://tc39.es/ecma262/#sec-ordinarycreatefromconstructor
template<typename T, typename... Args>