mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 13:19:05 +00:00
Spreadsheet: Enable dynamic import of javascript modules
This has some risks as it can (attempt to) load arbitrary files on the filesystem but for now it can only load local files which do go through normal file operations. But let's enable it for now to see what we can do with it.
This commit is contained in:
parent
986ad3ccf0
commit
2d4b345bb1
Notes:
sideshowbarker
2024-07-17 20:28:06 +09:00
Author: https://github.com/davidot
Commit: 2d4b345bb1
Pull-request: https://github.com/SerenityOS/serenity/pull/11957
Reviewed-by: https://github.com/emanuele6
Reviewed-by: https://github.com/linusg
1 changed files with 2 additions and 0 deletions
|
@ -40,6 +40,8 @@ Workbook::Workbook(NonnullRefPtrVector<Sheet>&& sheets, GUI::Window& parent_wind
|
|||
m_main_execution_context.realm = &m_interpreter->realm();
|
||||
m_main_execution_context.is_strict_mode = true;
|
||||
MUST(m_vm->push_execution_context(m_main_execution_context, m_interpreter->global_object()));
|
||||
|
||||
m_vm->enable_default_host_import_module_dynamically_hook();
|
||||
}
|
||||
|
||||
bool Workbook::set_filename(const String& filename)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue