mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:57:44 +00:00
LibJS: Convert ordinary_to_primitive() to ThrowCompletionOr
Also add spec step comments to it while we're here.
This commit is contained in:
parent
867b19affb
commit
fa2ac5b759
4 changed files with 26 additions and 13 deletions
|
@ -67,7 +67,7 @@ public:
|
|||
|
||||
// 7.1 Type Conversion, https://tc39.es/ecma262/#sec-type-conversion
|
||||
|
||||
Value ordinary_to_primitive(Value::PreferredType preferred_type) const;
|
||||
ThrowCompletionOr<Value> ordinary_to_primitive(Value::PreferredType preferred_type) const;
|
||||
|
||||
// 7.2 Testing and Comparison Operations, https://tc39.es/ecma262/#sec-testing-and-comparison-operations
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue