You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A compiled hosted module with top-level await inherits the dynamic import caller's receiver when the caller invokes import from an explicitly bound function. The module should have its own undefined top-level receiver.
Node v22.23.2 prints true true true false false. Both clean SharpTS main a3683d903 and PR #3552 at 1f2bebf06 print true false false true true when run through the compiled hosted ABI. The caller's receiver remains intact, but the imported module exposes that same object on both sides of its suspension.
Compile with --no-tsconfig --noLib --compile main.mjs --hosted --verify -o main.dll, load the assembly with SharpTSHostedAssembly.CreateRuntime, and initialize it while pumping the host dispatcher. Both assemblies passed full IL verification. Found while reviewing #3552. This is independent of #3504's strict-deletion behavior and #3548's interpreted top-level module receiver.
Activity