Skip to content

Commit

Permalink
fix: component new adapter null bug (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Sep 20, 2023
1 parent 177f295 commit af732aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/wasm-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function componentWit(file, opts) {
export async function componentNew(file, opts) {
await $init;
const source = file ? await readFile(file) : null;
let adapters = null;
let adapters = [];
if (opts.wasiReactor && opts.wasiCommand)
throw new Error('Must select one of --wasi-command or --wasi-reactor');
if (opts.wasiReactor)
Expand Down

0 comments on commit af732aa

Please sign in to comment.