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:
parent
bac3c2cf6d
commit
312946059b
Notes:
sideshowbarker
2024-07-18 07:12:29 +09:00
Author: https://github.com/linusg
Commit: 312946059b
21 changed files with 24 additions and 24 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue