mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 02:26:10 +00: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:
parent
53f70e5208
commit
e3ef241108
Notes:
sideshowbarker
2024-07-18 10:18:49 +09:00
Author: https://github.com/IdanHo
Commit: e3ef241108
Pull-request: https://github.com/SerenityOS/serenity/pull/8478
Reviewed-by: https://github.com/linusg
15 changed files with 40 additions and 49 deletions
|
@ -38,7 +38,7 @@ Workbook::Workbook(NonnullRefPtrVector<Sheet>&& sheets)
|
|||
, m_interpreter_scope(JS::VM::InterpreterExecutionScope(interpreter()))
|
||||
{
|
||||
m_workbook_object = interpreter().heap().allocate<WorkbookObject>(global_object(), *this);
|
||||
global_object().put("workbook", workbook_object());
|
||||
global_object().define_direct_property("workbook", workbook_object(), JS::default_attributes);
|
||||
}
|
||||
|
||||
bool Workbook::set_filename(const String& filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue