mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
LibJS: Convert internal_set() to ThrowCompletionOr
This commit is contained in:
parent
6c2b974db2
commit
e5409c6ead
19 changed files with 66 additions and 69 deletions
|
@ -310,7 +310,7 @@ JS_DEFINE_NATIVE_FUNCTION(ReflectObject::set)
|
|||
}
|
||||
|
||||
// 4. Return ? target.[[Set]](key, V, receiver).
|
||||
return Value(target.as_object().internal_set(key, value, receiver));
|
||||
return Value(TRY_OR_DISCARD(target.as_object().internal_set(key, value, receiver)));
|
||||
}
|
||||
|
||||
// 28.1.13 Reflect.setPrototypeOf ( target, proto ), https://tc39.es/ecma262/#sec-reflect.setprototypeof
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue