diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-07-06 01:15:50 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-07-06 14:20:30 +0100 |
commit | e3ef2411086488ebdb8d193bcefd06cd77372d09 (patch) | |
tree | 6323321e9e8105be9d1278dbd03992876beafeaa /Userland/Applications/Spreadsheet/JSIntegration.cpp | |
parent | 53f70e520889a58a75e243cb93ed14f08416cf8a (diff) | |
download | serenity-e3ef2411086488ebdb8d193bcefd06cd77372d09.zip |
LibJS: Remove the non-standard put helper and replace it's usages
This removes all usages of the non-standard put helper method and
replaces all of it's usages with the specification required alternative
or with define_direct_property where appropriate.
Diffstat (limited to 'Userland/Applications/Spreadsheet/JSIntegration.cpp')
-rw-r--r-- | Userland/Applications/Spreadsheet/JSIntegration.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Applications/Spreadsheet/JSIntegration.cpp b/Userland/Applications/Spreadsheet/JSIntegration.cpp index b40f1fa976..1d44868d3a 100644 --- a/Userland/Applications/Spreadsheet/JSIntegration.cpp +++ b/Userland/Applications/Spreadsheet/JSIntegration.cpp @@ -265,8 +265,8 @@ JS_DEFINE_NATIVE_FUNCTION(SheetGlobalObject::parse_cell_name) return JS::js_undefined(); auto object = JS::Object::create(global_object, global_object.object_prototype()); - object->put("column", JS::js_string(vm, sheet_object->m_sheet.column(position.value().column))); - object->put("row", JS::Value((unsigned)position.value().row)); + object->define_direct_property("column", JS::js_string(vm, sheet_object->m_sheet.column(position.value().column)), JS::default_attributes); + object->define_direct_property("row", JS::Value((unsigned)position.value().row), JS::default_attributes); return object; } @@ -295,8 +295,8 @@ JS_DEFINE_NATIVE_FUNCTION(SheetGlobalObject::current_cell_position) auto position = current_cell->position(); auto object = JS::Object::create(global_object, global_object.object_prototype()); - object->put("column", JS::js_string(vm, sheet_object->m_sheet.column(position.column))); - object->put("row", JS::Value((unsigned)position.row)); + object->define_direct_property("column", JS::js_string(vm, sheet_object->m_sheet.column(position.column)), JS::default_attributes); + object->define_direct_property("row", JS::Value((unsigned)position.row), JS::default_attributes); return object; } |