diff options
Diffstat (limited to 'Libraries/LibJS/Runtime/SymbolConstructor.cpp')
-rw-r--r-- | Libraries/LibJS/Runtime/SymbolConstructor.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/Libraries/LibJS/Runtime/SymbolConstructor.cpp b/Libraries/LibJS/Runtime/SymbolConstructor.cpp index c8d36823ba..485d90a3ec 100644 --- a/Libraries/LibJS/Runtime/SymbolConstructor.cpp +++ b/Libraries/LibJS/Runtime/SymbolConstructor.cpp @@ -35,27 +35,27 @@ namespace JS { SymbolConstructor::SymbolConstructor() : NativeFunction("Symbol", *interpreter().global_object().function_prototype()) { - put("prototype", interpreter().global_object().symbol_prototype(), 0); - put("length", Value(0), Attribute::Configurable); + define_property("prototype", interpreter().global_object().symbol_prototype(), 0); + define_property("length", Value(0), Attribute::Configurable); - put_native_function("for", for_, 1, Attribute::Writable | Attribute::Configurable); - put_native_function("keyFor", key_for, 1, Attribute::Writable | Attribute::Configurable); + define_native_function("for", for_, 1, Attribute::Writable | Attribute::Configurable); + define_native_function("keyFor", key_for, 1, Attribute::Writable | Attribute::Configurable); SymbolObject::initialize_well_known_symbols(interpreter()); - put("iterator", SymbolObject::well_known_iterator(), 0); - put("asyncIterator", SymbolObject::well_known_async_terator(), 0); - put("match", SymbolObject::well_known_match(), 0); - put("matchAll", SymbolObject::well_known_match_all(), 0); - put("replace", SymbolObject::well_known_replace(), 0); - put("search", SymbolObject::well_known_search(), 0); - put("split", SymbolObject::well_known_split(), 0); - put("hasInstance", SymbolObject::well_known_has_instance(), 0); - put("isConcatSpreadable", SymbolObject::well_known_is_concat_spreadable(), 0); - put("unscopables", SymbolObject::well_known_unscopables(), 0); - put("species", SymbolObject::well_known_species(), 0); - put("toPrimitive", SymbolObject::well_known_to_primtive(), 0); - put("toStringTag", SymbolObject::well_known_to_string_tag(), 0); + define_property("iterator", SymbolObject::well_known_iterator(), 0); + define_property("asyncIterator", SymbolObject::well_known_async_terator(), 0); + define_property("match", SymbolObject::well_known_match(), 0); + define_property("matchAll", SymbolObject::well_known_match_all(), 0); + define_property("replace", SymbolObject::well_known_replace(), 0); + define_property("search", SymbolObject::well_known_search(), 0); + define_property("split", SymbolObject::well_known_split(), 0); + define_property("hasInstance", SymbolObject::well_known_has_instance(), 0); + define_property("isConcatSpreadable", SymbolObject::well_known_is_concat_spreadable(), 0); + define_property("unscopables", SymbolObject::well_known_unscopables(), 0); + define_property("species", SymbolObject::well_known_species(), 0); + define_property("toPrimitive", SymbolObject::well_known_to_primtive(), 0); + define_property("toStringTag", SymbolObject::well_known_to_string_tag(), 0); } SymbolConstructor::~SymbolConstructor() |