Skip to content

Commit

Permalink
Implement JSON[ @@toStringTag ] (#1224)
Browse files Browse the repository at this point in the history
  • Loading branch information
Razican committed May 22, 2021
1 parent 326c7a3 commit 7641ae7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions boa/src/builtins/json/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7641ae7

Please sign in to comment.