Skip to content

Commit

Permalink
fix assert/strict for smokehouse bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Jul 10, 2023
1 parent 60e521c commit 3e6cc60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build/build-smokehouse-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ async function main() {
};
`,
'assert/strict': `
const equal = (a, b) => {
export const equal = (a, b) => {
if (a !== b) throw new Error('expected: ' + b + ' but got: ' + a);
};
export default {equal};
export default (val, msg) => {
if (!val) throw new Error('assertion failed: ' + msg);
};
`,
}),
plugins.bulkLoader([
Expand Down

0 comments on commit 3e6cc60

Please sign in to comment.