diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-27 20:03:42 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-27 20:26:58 +0200 |
commit | 591b7b7031844a3807d9ee1338f979fba1e1a78b (patch) | |
tree | 4abca03c1ccbfdadc9bff6f6991f2ff79c9aa4d3 /Applications | |
parent | adf0a537aff6da0519a140e69a5d26228aa65855 (diff) | |
download | serenity-591b7b7031844a3807d9ee1338f979fba1e1a78b.zip |
LibJS: Remove js_string(Interpreter&, ...)
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/Spreadsheet/Cell.cpp | 2 | ||||
-rw-r--r-- | Applications/Spreadsheet/CellType/String.cpp | 2 | ||||
-rw-r--r-- | Applications/Spreadsheet/Spreadsheet.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/Applications/Spreadsheet/Cell.cpp b/Applications/Spreadsheet/Cell.cpp index c82f072fe9..0d371f4653 100644 --- a/Applications/Spreadsheet/Cell.cpp +++ b/Applications/Spreadsheet/Cell.cpp @@ -157,7 +157,7 @@ JS::Value Cell::js_data() if (kind == Formula) return evaluated_data; - return JS::js_string(sheet->interpreter(), data); + return JS::js_string(sheet->interpreter().heap(), data); } String Cell::source() const diff --git a/Applications/Spreadsheet/CellType/String.cpp b/Applications/Spreadsheet/CellType/String.cpp index e8b0ed61d2..ad1b7dd95c 100644 --- a/Applications/Spreadsheet/CellType/String.cpp +++ b/Applications/Spreadsheet/CellType/String.cpp @@ -51,7 +51,7 @@ String StringCell::display(Cell& cell, const CellTypeMetadata& metadata) const JS::Value StringCell::js_value(Cell& cell, const CellTypeMetadata& metadata) const { auto string = display(cell, metadata); - return JS::js_string(cell.sheet->interpreter(), string); + return JS::js_string(cell.sheet->interpreter().heap(), string); } } diff --git a/Applications/Spreadsheet/Spreadsheet.cpp b/Applications/Spreadsheet/Spreadsheet.cpp index bc97b60330..e1c79ba606 100644 --- a/Applications/Spreadsheet/Spreadsheet.cpp +++ b/Applications/Spreadsheet/Spreadsheet.cpp @@ -248,7 +248,7 @@ RefPtr<Sheet> Sheet::from_json(const JsonObject& object, Workbook& workbook) break; case Cell::Formula: { auto& interpreter = sheet->interpreter(); - auto value = interpreter.call(parse_function, json, JS::js_string(interpreter, obj.get("value").as_string())); + auto value = interpreter.call(parse_function, json, JS::js_string(interpreter.heap(), obj.get("value").as_string())); cell = make<Cell>(obj.get("source").to_string(), move(value), sheet->make_weak_ptr()); break; } |