mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:17:45 +00:00
LibJS: Remove the NativeProperty mechanism from LibJS
These were an ad-hoc way to implement special behaviour when reading or writing to specific object properties. Because these were effectively replaced by the abillity to override the internal methods of Object, they are no longer needed.
This commit is contained in:
parent
306d59276a
commit
795786387b
11 changed files with 9 additions and 157 deletions
|
@ -255,7 +255,7 @@ static void print_error(JS::Object const& object, HashTable<JS::Object*>& seen_o
|
|||
{
|
||||
auto name = object.get_without_side_effects(vm->names.name).value_or(JS::js_undefined());
|
||||
auto message = object.get_without_side_effects(vm->names.message).value_or(JS::js_undefined());
|
||||
if (name.is_accessor() || name.is_native_property() || message.is_accessor() || message.is_native_property()) {
|
||||
if (name.is_accessor() || message.is_accessor()) {
|
||||
print_value(&object, seen_objects);
|
||||
} else {
|
||||
auto name_string = name.to_string_without_side_effects();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue