JavaScript Backend: fix reference errors
Description
Several tests fail on the JS backend due to missing references, for example:
uncaught exception in Haskell main thread: ReferenceError: h$socket is not defined
ReferenceError: h$socket is not defined
at h$$35620042 (/run/user/1729/ghctest-ars37j8x/test spaces/libraries/base/tests/IO/T12010/T12010.run/T12010:50296:19)
at h$runThreadSlice (/run/user/1729/ghctest-ars37j8x/test spaces/libraries/base/tests/IO/T12010/T12010.run/T12010:17468:11)
at h$runThreadSliceCatch (/run/user/1729/ghctest-ars37j8x/test spaces/libraries/base/tests/IO/T12010/T12010.run/T12010:17443:12)
at Immediate.h$mainLoop [as _onImmediate] (/run/user/1729/ghctest-ars37j8x/test spaces/libraries/base/tests/IO/T12010/T12010.run/T12010:17438:9)
at process.processImmediate (node:internal/timers:471:21)
Stderr ( T12010 ):
Not all of these will make sense on the JS backend. Anyway this ticket is the tracking ticket for these tests.
Impacted Tests
Tick these off as they are fixed (they've been marked as js_broken(22374)
) and re-enabled in the testsuite, or disabled for a good reason.
-
hGetBuf001: h$pipe is not defined -
T12852: h$pipe is not defined -
T12903: h$pipe is not defined -
rdynamic: h$initLinker is not defined -
T2615: !10148 (closed) -
T4012: h$printf is not defined -
T15427: h$hs_try_putmvar is not defined -
T18642: h$getRTSStatsEnabled is not defined -
T19381: h$getRTSStatsEnabled is not defined -
T19481: h$getRTSStatsEnabled is not defined -
T3474: heap overflow -
stack004: h$RtsFlags is not defined -
encoding004: h$EINVAL is not defined -
ThreadDelay001: h$CLOCK_REALTIME is not defined -
TargetContents: h$mkdir is not defined -
openFile003: h$mkdir is not defined -
T13525: JavaScript exception: h$base_mkfifo -
hReady001: h$fdReady is not defined -
hReady002: h$fdReady is not defined -
readwrite002: h$fdReady is not defined -
fed001: h$qsort is not defined -
Capi_Ctype_001: disabled with req_c
-
Capi_Ctype_002: disabled with req_c
-
T7037: h$mainZCZCMainzimain is not defined -
T12010: h$socket is not defined -
unpack_sums_6: h$CLOCK_REALTIME is not defined
Edited by Sylvain Henry