diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-27 18:52:42 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-27 20:26:58 +0200 |
commit | aaa8b48a4cffc708e266563afd1ecf3c92227c1a (patch) | |
tree | 0ecc2f628c570fe781ee15b2310507dbefc4ad01 /Userland | |
parent | f79d4c7347c1d5a9ca4dbc8fb4b1bfeb74c1d3a3 (diff) | |
download | serenity-aaa8b48a4cffc708e266563afd1ecf3c92227c1a.zip |
LibJS: Remove use of Interpreter& in JSONObject code
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/test-js.cpp | 4 | ||||
-rw-r--r-- | Userland/test-web.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Userland/test-js.cpp b/Userland/test-js.cpp index ff30d99d42..cd704f8a7f 100644 --- a/Userland/test-js.cpp +++ b/Userland/test-js.cpp @@ -260,8 +260,8 @@ static Result<NonnullRefPtr<JS::Program>, ParserError> parse_file(const String& static Optional<JsonValue> get_test_results(JS::Interpreter& interpreter) { - auto result = interpreter.vm().get_variable("__TestResults__", interpreter.global_object()); - auto json_string = JS::JSONObject::stringify_impl(interpreter, interpreter.global_object(), result, JS::js_undefined(), JS::js_undefined()); + auto result = vm->get_variable("__TestResults__", interpreter.global_object()); + auto json_string = JS::JSONObject::stringify_impl(interpreter.global_object(), result, JS::js_undefined(), JS::js_undefined()); auto json = JsonValue::from_string(json_string); if (!json.has_value()) diff --git a/Userland/test-web.cpp b/Userland/test-web.cpp index aaaae3a9ce..868d5f370f 100644 --- a/Userland/test-web.cpp +++ b/Userland/test-web.cpp @@ -291,7 +291,7 @@ static Result<NonnullRefPtr<JS::Program>, ParserError> parse_file(const String& static Optional<JsonValue> get_test_results(JS::Interpreter& interpreter) { auto result = interpreter.vm().get_variable("__TestResults__", interpreter.global_object()); - auto json_string = JS::JSONObject::stringify_impl(interpreter, interpreter.global_object(), result, JS::js_undefined(), JS::js_undefined()); + auto json_string = JS::JSONObject::stringify_impl(interpreter.global_object(), result, JS::js_undefined(), JS::js_undefined()); auto json = JsonValue::from_string(json_string); if (!json.has_value()) |