mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 08:33:28 +02:00
LibJS: Remove the non-standard put helper and replace it's usages
This removes all usages of the non-standard put helper method and replaces all of it's usages with the specification required alternative or with define_direct_property where appropriate.
This commit is contained in:
committed by
Linus Groh
parent
53f70e5208
commit
e3ef241108
Notes:
sideshowbarker
2024-07-18 10:18:49 +09:00
Author: https://github.com/IdanHo Commit: https://github.com/SerenityOS/serenity/commit/e3ef2411086 Pull-request: https://github.com/SerenityOS/serenity/pull/8478 Reviewed-by: https://github.com/linusg
@@ -29,11 +29,8 @@ DebuggerVariableJSObject::~DebuggerVariableJSObject()
|
||||
{
|
||||
}
|
||||
|
||||
bool DebuggerVariableJSObject::internal_set(const JS::PropertyName& property_name, JS::Value value, JS::Value receiver)
|
||||
bool DebuggerVariableJSObject::internal_set(const JS::PropertyName& property_name, JS::Value value, JS::Value)
|
||||
{
|
||||
if (m_is_writing_properties)
|
||||
return Base::internal_set(property_name, value, receiver);
|
||||
|
||||
if (!property_name.is_string()) {
|
||||
vm().throw_exception<JS::TypeError>(global_object(), String::formatted("Invalid variable name {}", property_name.to_string()));
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user