🤖 Pick PR #58895 (Fix global when typescript.js loade...) into release-5.5 (#58896)

Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
This commit is contained in:
TypeScript Bot
2024-06-17 17:08:13 -07:00
committed by GitHub
co-authored by Jake Bailey
parent 45b1e3c254
commit 02132e5b81
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -29,6 +29,7 @@ for (const browserType of browsers) {
await page.setContent(`
<html>
<script>${readFileSync(join("built", "local", "typescript.js"), "utf8")}</script>
<script>if (typeof ts.version !== "string") throw new Error("ts.version not set")</script>
</html>
`);