mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:07:45 +00:00
Meta: Explicitly link generated compile-time data into the WASM JS REPL
Without this, we were in a weird state where LibTimeZone believed it had TZDB data, but that data wasn't actually available to it. This caused functions like JS::get_named_time_zone_offset_nanoseconds() to trip an assertion when entering "new Date();" into the REPL.
This commit is contained in:
parent
312a41fddf
commit
14524ad019
1 changed files with 2 additions and 2 deletions
|
@ -476,7 +476,7 @@ if (BUILD_LAGOM)
|
||||||
target_link_libraries(js LibCrypto LibJS LibLine LibLocale LibMain LibTextCodec Threads::Threads)
|
target_link_libraries(js LibCrypto LibJS LibLine LibLocale LibMain LibTextCodec Threads::Threads)
|
||||||
if (EMSCRIPTEN)
|
if (EMSCRIPTEN)
|
||||||
add_executable(libjs Wasm/js_repl.cpp)
|
add_executable(libjs Wasm/js_repl.cpp)
|
||||||
target_link_libraries(libjs LibJS)
|
target_link_libraries(libjs LibJS LibLocale LibTimeZone LibUnicode)
|
||||||
target_link_options(libjs PRIVATE
|
target_link_options(libjs PRIVATE
|
||||||
-sEXPORTED_FUNCTIONS=_initialize_repl,_execute
|
-sEXPORTED_FUNCTIONS=_initialize_repl,_execute
|
||||||
-sEXPORTED_RUNTIME_METHODS=allocateUTF8
|
-sEXPORTED_RUNTIME_METHODS=allocateUTF8
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue