From 7641ae727143b350f35d28a497fe04211c389bca Mon Sep 17 00:00:00 2001 From: "Iban Eguia (Razican)" Date: Sat, 22 May 2021 11:32:35 +0200 Subject: [PATCH] Implement `JSON[ @@toStringTag ]` (#1224) --- boa/src/builtins/json/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boa/src/builtins/json/mod.rs b/boa/src/builtins/json/mod.rs index d9d12bb9576..ed9da2d64f4 100644 --- a/boa/src/builtins/json/mod.rs +++ b/boa/src/builtins/json/mod.rs @@ -40,7 +40,9 @@ impl BuiltIn for Json { fn init(context: &mut Context) -> (&'static str, Value, Attribute) { let _timer = BoaProfiler::global().start_event(Self::NAME, "init"); + let string_tag = context.well_known_symbols().to_string_tag_symbol(); + let json_object = ObjectInitializer::new(context) .function(Self::parse, "parse", 2) .function(Self::stringify, "stringify", 3)