mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:07:44 +00:00
LibJS: Replace GlobalObject with VM in JSON AOs [Part 13/19]
This commit is contained in:
parent
90bf33241d
commit
9930302efb
3 changed files with 44 additions and 40 deletions
|
@ -260,7 +260,7 @@ inline AK::Result<NonnullRefPtr<JS::SourceTextModule>, ParserError> parse_module
|
|||
inline ErrorOr<JsonValue> get_test_results(JS::Interpreter& interpreter)
|
||||
{
|
||||
auto results = MUST(interpreter.global_object().get("__TestResults__"));
|
||||
auto json_string = MUST(JS::JSONObject::stringify_impl(interpreter.global_object(), results, JS::js_undefined(), JS::js_undefined()));
|
||||
auto json_string = MUST(JS::JSONObject::stringify_impl(*g_vm, results, JS::js_undefined(), JS::js_undefined()));
|
||||
|
||||
return JsonValue::from_string(json_string);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue