1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 02:13:56 +09:00

LibJS+Spreadsheet: Use js_string(VM&, ...) overload more

This commit is contained in:
Linus Groh 2021-08-08 21:31:44 +01:00
parent bac3c2cf6d
commit 312946059b
Notes: sideshowbarker 2024-07-18 07:12:29 +09:00
21 changed files with 24 additions and 24 deletions

View file

@ -192,9 +192,9 @@ JS_DEFINE_NATIVE_FUNCTION(SheetGlobalObject::get_real_cell_contents)
return JS::js_undefined();
if (cell->kind() == Spreadsheet::Cell::Kind::Formula)
return JS::js_string(vm.heap(), String::formatted("={}", cell->data()));
return JS::js_string(vm, String::formatted("={}", cell->data()));
return JS::js_string(vm.heap(), cell->data());
return JS::js_string(vm, cell->data());
}
JS_DEFINE_NATIVE_FUNCTION(SheetGlobalObject::set_real_cell_contents)