File tree Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Expand file tree Collapse file tree 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change 1
1
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
4
4
./qjs --unhandled-rejection test_bundle.js " $@ "
Original file line number Diff line number Diff line change @@ -4,15 +4,6 @@ import {
4
4
} from "https://deno.land/[email protected] /streams/conversion.ts" ;
5
5
6
6
( 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
-
16
7
const file = await Deno . open ( "test.txt" , { write : true } ) ;
17
8
for await ( const buf of iterateReader ( Deno . stdin , { bufSize : 10 } ) ) {
18
9
await writeAll ( file , buf ) ;
You can’t perform that action at this time.
0 commit comments