mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 12:49:08 +00:00
Everywhere: Add support for compilation under emscripten
Co-Authored-By: Andrew Kaster <akaster@serenityos.org>
This commit is contained in:
committed by
Ali Mohammad Pur
parent
84502f53b5
commit
2110e7cf85
@@ -44,7 +44,9 @@ MappedFile::MappedFile(void* ptr, size_t size)
|
||||
|
||||
MappedFile::~MappedFile()
|
||||
{
|
||||
MUST(Core::System::munmap(m_data, m_size));
|
||||
auto res = Core::System::munmap(m_data, m_size);
|
||||
if (res.is_error())
|
||||
dbgln("Failed to unmap MappedFile (@ {:p}): {}", m_data, res.error());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user