1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:27:35 +00:00

LibJS: Remove some Interpreter::global_object() calls in JSONObject

This commit is contained in:
Andreas Kling 2020-06-20 16:56:01 +02:00
parent 32c121a8f7
commit 9610d18ebb
2 changed files with 22 additions and 21 deletions

View file

@ -26,6 +26,8 @@
#pragma once
#include <LibJS/Runtime/Object.h>
namespace JS {
class JSONObject final : public Object {
@ -51,9 +53,9 @@ private:
static String quote_json_string(String);
// Parse helpers
static Object* parse_json_object(Interpreter&, const JsonObject&);
static Array* parse_json_array(Interpreter&, const JsonArray&);
static Value parse_json_value(Interpreter&, const JsonValue&);
static Object* parse_json_object(Interpreter&, GlobalObject&, const JsonObject&);
static Array* parse_json_array(Interpreter&, GlobalObject&, const JsonArray&);
static Value parse_json_value(Interpreter&, GlobalObject&, const JsonValue&);
static Value internalize_json_property(Interpreter&, Object* holder, const PropertyName& name, Function& reviver);
JS_DECLARE_NATIVE_FUNCTION(stringify);