1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:17:34 +00: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
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)