Skip to content

Commit

Permalink
Exit with error on compile failure
Browse files Browse the repository at this point in the history
  • Loading branch information
keiravillekode committed Oct 20, 2023
1 parent ec0d105 commit 06d55be
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ beforeAll(async () => {
wasmModule = await WebAssembly.compile(buffer);
} catch (err) {
console.log(`Error compiling *.wat: ${err}`);
process.exit(1);
}
});

Expand Down
1 change: 1 addition & 0 deletions exercises/practice/darts/darts.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ beforeAll(async () => {
wasmModule = await WebAssembly.compile(buffer);
} catch (err) {
console.log(`Error compiling *.wat: ${err}`);
process.exit(1);
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ beforeAll(async () => {
wasmModule = await WebAssembly.compile(buffer);
} catch (err) {
console.log(`Error compiling *.wat: ${err}`);
process.exit(1);
}
});

Expand Down
1 change: 1 addition & 0 deletions exercises/practice/grains/grains.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ beforeAll(async () => {
wasmModule = await WebAssembly.compile(buffer);
} catch (err) {
console.log(`Error compiling *.wat: ${err}`);
process.exit(1);
}
});

Expand Down
1 change: 1 addition & 0 deletions exercises/practice/hello-world/hello-world.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ beforeAll(async () => {
wasmModule = await WebAssembly.compile(buffer);
} catch (err) {
console.log(`Error compiling *.wat: ${err}`);
process.exit(1);
}
});

Expand Down
1 change: 1 addition & 0 deletions exercises/practice/pangram/pangram.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ beforeAll(async () => {
wasmModule = await WebAssembly.compile(buffer);
} catch (err) {
console.log(`Error compiling *.wat: ${err}`);
process.exit(1);
}
});

Expand Down
1 change: 1 addition & 0 deletions exercises/practice/two-fer/two-fer.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ beforeAll(async () => {
wasmModule = await WebAssembly.compile(buffer);
} catch (err) {
console.log(`Error compiling *.wat: ${err}`);
process.exit(1);
}
});

Expand Down

0 comments on commit 06d55be

Please sign in to comment.