diff options
author | Andreas Kling <kling@serenityos.org> | 2020-10-04 23:08:49 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-10-04 23:08:49 +0200 |
commit | 94b95a4924416968af712b94f962f9377f90c7a1 (patch) | |
tree | 8390853c9e450184ce193ad78909e1ccd5c5e859 /Applications/Spreadsheet/Spreadsheet.cpp | |
parent | ec55490198052f65f3e4ecba61e3d992704a3d9f (diff) | |
download | serenity-94b95a4924416968af712b94f962f9377f90c7a1.zip |
LibJS: Remove Interpreter::call()
Just use VM::call() directly everywhere.
Diffstat (limited to 'Applications/Spreadsheet/Spreadsheet.cpp')
-rw-r--r-- | Applications/Spreadsheet/Spreadsheet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/Spreadsheet/Spreadsheet.cpp b/Applications/Spreadsheet/Spreadsheet.cpp index 254b77ae71..2e871d4624 100644 --- a/Applications/Spreadsheet/Spreadsheet.cpp +++ b/Applications/Spreadsheet/Spreadsheet.cpp @@ -249,7 +249,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.heap(), obj.get("value").as_string())); + auto value = interpreter.vm().call(parse_function, json, JS::js_string(interpreter.heap(), obj.get("value").as_string())); cell = make<Cell>(obj.get("source").to_string(), move(value), position, sheet->make_weak_ptr()); break; } @@ -339,7 +339,7 @@ JsonObject Sheet::to_json() const if (it.value->kind == Cell::Formula) { data.set("source", it.value->data); auto json = interpreter().global_object().get("JSON"); - auto stringified = interpreter().call(json.as_object().get("stringify").as_function(), json, it.value->evaluated_data); + auto stringified = interpreter().vm().call(json.as_object().get("stringify").as_function(), json, it.value->evaluated_data); data.set("value", stringified.to_string_without_side_effects()); } else { data.set("value", it.value->data); |