From 0f4c8839919d0680bbd354ae4f38d5916a6a97d5 Mon Sep 17 00:00:00 2001 From: ASDAlexander77 Date: Thu, 12 Nov 2026 11:47:30 +0000 Subject: [PATCH] wasm: the compiler's JS host is now tslang\test\wasm\host.mjs The compiler moved its wasm test runner and host from docs\how\wasm\test to tslang\test\wasm (TypeScriptCompiler #821). Co-Authored-By: Claude Opus 5.5 --- README.md | 2 +- scripts/build_wasm.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 14609dd..c5b8f76 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ The output goes to `__build\defaultlib\lib\\unknown\unknown\unkno It is `lib.ts` with the OS layer `src\lib.wasm.ts`, and no C++ wrappers: these targets have no C library. tslang links a wasm program with `--allow-undefined`, so the C functions and the wrappers' functions become imports, which the host that runs the program implements. The compiler repo's -`docs\how\wasm\test\host.mjs` is that host, for Node and browsers. There is no `gc` build, because +`tslang\test\wasm\host.mjs` is that host, for Node and browsers. There is no `gc` build, because the collector is not built for wasm. ### Android diff --git a/scripts/build_wasm.bat b/scripts/build_wasm.bat index 7542b86..b5d675d 100644 --- a/scripts/build_wasm.bat +++ b/scripts/build_wasm.bat @@ -22,7 +22,7 @@ @rem and the OS layer lib.wasm.ts only. tslang links a wasm program with --allow-undefined, so what @rem the wrappers and the C library would provide (snprintf, malloc, regexp_*, stdio_write, ...) @rem become imports from the `env` module, which the host that runs the program implements - see -@rem TypeScriptCompiler\docs\how\wasm\test\host.mjs. +@rem TypeScriptCompiler\tslang\test\wasm\host.mjs. @rem - Only the static library: a wasm program is one module. @echo off setlocal