mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:47:35 +00:00
LibJS: Convert internal_get() to ThrowCompletionOr
This commit is contained in:
parent
d9895ec12d
commit
6c2b974db2
17 changed files with 39 additions and 44 deletions
|
@ -8,6 +8,7 @@
|
|||
#include "Spreadsheet.h"
|
||||
#include "Workbook.h"
|
||||
#include <LibJS/Lexer.h>
|
||||
#include <LibJS/Runtime/Completion.h>
|
||||
#include <LibJS/Runtime/Error.h>
|
||||
#include <LibJS/Runtime/GlobalObject.h>
|
||||
#include <LibJS/Runtime/Object.h>
|
||||
|
@ -101,7 +102,7 @@ SheetGlobalObject::~SheetGlobalObject()
|
|||
{
|
||||
}
|
||||
|
||||
JS::Value SheetGlobalObject::internal_get(const JS::PropertyName& property_name, JS::Value receiver) const
|
||||
JS::ThrowCompletionOr<JS::Value> SheetGlobalObject::internal_get(const JS::PropertyName& property_name, JS::Value receiver) const
|
||||
{
|
||||
if (property_name.is_string()) {
|
||||
if (property_name.as_string() == "value") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue