From a8e434c0591e039dcd6697a4512d0515e49967c0 Mon Sep 17 00:00:00 2001 From: "Iban Eguia (Razican)" Date: Sat, 22 May 2021 11:56:50 +0200 Subject: [PATCH] Implement `JSON[ @@toStringTag ]` (#1224) --- boa/src/builtins/json/mod.rs | 1 - boa/src/builtins/math/mod.rs | 7 ------- 2 files changed, 8 deletions(-) diff --git a/boa/src/builtins/json/mod.rs b/boa/src/builtins/json/mod.rs index a2ee3326824..fbb46bde1fe 100644 --- a/boa/src/builtins/json/mod.rs +++ b/boa/src/builtins/json/mod.rs @@ -42,7 +42,6 @@ impl BuiltIn for Json { let _timer = BoaProfiler::global().start_event(Self::NAME, "init"); let to_string_tag = WellKnownSymbols::to_string_tag(); - let attribute = Attribute::READONLY | Attribute::NON_ENUMERABLE | Attribute::CONFIGURABLE; let json_object = ObjectInitializer::new(context) diff --git a/boa/src/builtins/math/mod.rs b/boa/src/builtins/math/mod.rs index d01fc4d6ff2..284319e2a0a 100644 --- a/boa/src/builtins/math/mod.rs +++ b/boa/src/builtins/math/mod.rs @@ -35,8 +35,6 @@ impl BuiltIn for Math { let _timer = BoaProfiler::global().start_event(Self::NAME, "init"); - let to_string_tag = context.well_known_symbols().to_string_tag_symbol(); - let attribute = Attribute::READONLY | Attribute::NON_ENUMERABLE | Attribute::PERMANENT; let string_tag = WellKnownSymbols::to_string_tag(); let object = ObjectInitializer::new(context) @@ -48,11 +46,6 @@ impl BuiltIn for Math { .property("SQRT1_2", 0.5_f64.sqrt(), attribute) .property("SQRT2", f64::consts::SQRT_2, attribute) .property("PI", f64::consts::PI, attribute) - .property( - to_string_tag, - "Math", - Attribute::READONLY | Attribute::NON_ENUMERABLE | Attribute::CONFIGURABLE, - ) .function(Self::abs, "abs", 1) .function(Self::acos, "acos", 1) .function(Self::acosh, "acosh", 1)