diff options
author | davidot <davidot@serenityos.org> | 2022-01-19 10:49:51 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-22 01:21:18 +0000 |
commit | 2d4b345bb1a54ecf34d3c088e3a45d61d23a9e57 (patch) | |
tree | 541ccd0f6f2941a11bd6efb2ad21b6418b2ad2ac /Userland/Applications/Spreadsheet | |
parent | 986ad3ccf0c7135ac82d25c17c560250dd0f79dd (diff) | |
download | serenity-2d4b345bb1a54ecf34d3c088e3a45d61d23a9e57.zip |
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.
Diffstat (limited to 'Userland/Applications/Spreadsheet')
-rw-r--r-- | Userland/Applications/Spreadsheet/Workbook.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Applications/Spreadsheet/Workbook.cpp b/Userland/Applications/Spreadsheet/Workbook.cpp index cf27699373..d67394e040 100644 --- a/Userland/Applications/Spreadsheet/Workbook.cpp +++ b/Userland/Applications/Spreadsheet/Workbook.cpp @@ -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) |