Skip to content

Commit 6875772

Browse files
committed
Slight build fix
1 parent 87a4524 commit 6875772

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

dev.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
deno run --unstable --allow-read=Deno.ts,qjs.d.ts build.ts Deno.ts > Deno.js
2-
deno bundle test.js > test_bundle.js
3-
deno run -A test_bundle.js "$@"
2+
echo 'import * as Deno from "./Deno.js";' > test_bundle.js
3+
deno bundle test.js >> test_bundle.js
44
./qjs --unhandled-rejection test_bundle.js "$@"

test.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,6 @@ import {
44
} from "https://deno.land/[email protected]/streams/conversion.ts";
55

66
(async () => {
7-
// code to conditionally import deno.qjs
8-
// #region
9-
/** @type {typeof globalThis.Deno} */
10-
const Deno = "Deno" in globalThis
11-
? globalThis.Deno
12-
: await import("./Deno.js");
13-
"Deno" in globalThis || (globalThis.Deno = Deno);
14-
// #endregion
15-
167
const file = await Deno.open("test.txt", { write: true });
178
for await (const buf of iterateReader(Deno.stdin, { bufSize: 10 })) {
189
await writeAll(file, buf);

0 commit comments

Comments
 (0)