mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:27:45 +00:00
Spreadsheet: Avoid using Value.to_string_without_side_effects()
We should use .to_string() and handle the possible exceptions. This makes the displayed cell contents so much more informative than '[object Object]' :^)
This commit is contained in:
parent
235eb0b1ad
commit
5f1a34bba3
13 changed files with 72 additions and 53 deletions
|
@ -79,8 +79,8 @@ struct Cell : public Weakable<Cell> {
|
|||
m_conditional_formats = move(fmts);
|
||||
}
|
||||
|
||||
String typed_display() const;
|
||||
JS::Value typed_js_data() const;
|
||||
JS::ThrowCompletionOr<String> typed_display() const;
|
||||
JS::ThrowCompletionOr<JS::Value> typed_js_data() const;
|
||||
|
||||
const CellType& type() const;
|
||||
const CellTypeMetadata& type_metadata() const { return m_type_metadata; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue