summaryrefslogtreecommitdiff
path: root/Userland/Applications
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applications')
-rw-r--r--Userland/Applications/Spreadsheet/JSIntegration.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/Userland/Applications/Spreadsheet/JSIntegration.cpp b/Userland/Applications/Spreadsheet/JSIntegration.cpp
index 7fe9a2a77f..b40f1fa976 100644
--- a/Userland/Applications/Spreadsheet/JSIntegration.cpp
+++ b/Userland/Applications/Spreadsheet/JSIntegration.cpp
@@ -139,12 +139,13 @@ bool SheetGlobalObject::internal_set(const JS::PropertyName& property_name, JS::
void SheetGlobalObject::initialize_global_object()
{
Base::initialize_global_object();
- define_native_function("get_real_cell_contents", get_real_cell_contents, 1);
- define_native_function("set_real_cell_contents", set_real_cell_contents, 2);
- define_native_function("parse_cell_name", parse_cell_name, 1);
- define_native_function("current_cell_position", current_cell_position, 0);
- define_native_function("column_arithmetic", column_arithmetic, 2);
- define_native_function("column_index", column_index, 1);
+ u8 attr = JS::Attribute::Configurable | JS::Attribute::Writable | JS::Attribute::Enumerable;
+ define_native_function("get_real_cell_contents", get_real_cell_contents, 1, attr);
+ define_native_function("set_real_cell_contents", set_real_cell_contents, 2, attr);
+ define_native_function("parse_cell_name", parse_cell_name, 1, attr);
+ define_native_function("current_cell_position", current_cell_position, 0, attr);
+ define_native_function("column_arithmetic", column_arithmetic, 2, attr);
+ define_native_function("column_index", column_index, 1, attr);
}
void SheetGlobalObject::visit_edges(Visitor& visitor)
@@ -389,7 +390,7 @@ WorkbookObject::~WorkbookObject()
void WorkbookObject::initialize(JS::GlobalObject& global_object)
{
Object::initialize(global_object);
- define_native_function("sheet", sheet, 1);
+ define_native_function("sheet", sheet, 1, JS::default_attributes);
}
void WorkbookObject::visit_edges(Visitor& visitor)