mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
LibJS+LibWeb: Convert empty PrimitiveString instances to String
This commit is contained in:
parent
e99a4ba7c8
commit
49e8dcf0b2
9 changed files with 26 additions and 26 deletions
|
@ -232,7 +232,7 @@ void Intrinsics::initialize_intrinsics(Realm& realm)
|
|||
},
|
||||
0, "", &realm);
|
||||
m_throw_type_error_function->define_direct_property(vm.names.length, Value(0), 0);
|
||||
m_throw_type_error_function->define_direct_property(vm.names.name, PrimitiveString::create(vm, ""), 0);
|
||||
m_throw_type_error_function->define_direct_property(vm.names.name, PrimitiveString::create(vm, String {}), 0);
|
||||
MUST(m_throw_type_error_function->internal_prevent_extensions());
|
||||
|
||||
initialize_constructor(vm, vm.names.Error, *m_error_constructor, m_error_prototype);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue