Open JoshuaKGoldberg opened 3 months ago
Just to clarify, there is definitely a bug in Vitest and ideally Vitest should support not-a-log
as is.
What I meant is that not-a-log
can be potentially made more robust around then
(or any other unexpected property access) since that can happen with simple await
expression (thought it's understandably odd use usage).
When trying to load the
not-a-log
module with a dynamicimport()
expression......the Proxy attempt to wrap around the
'then'
prop and that throws an error:I first experienced this trying to run code that imports
not-a-log
with Vitest: https://github.com/vitest-dev/vitest/issues/6115. @hi-ogawa noted this simpler reproduction in https://github.com/vitest-dev/vitest/issues/6115#issuecomment-2244128356 (thanks again!).