We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6396fb4 + 7efa3f9 commit eb12504Copy full SHA for eb12504
src/script.js
@@ -158,6 +158,9 @@ function toASM(chunks) {
158
if (chunksIsBuffer(chunks)) {
159
chunks = decompile(chunks);
160
}
161
+ if (!chunks) {
162
+ throw new Error('Could not convert invalid chunks to ASM');
163
+ }
164
return chunks
165
.map(chunk => {
166
// data?
ts_src/script.ts
@@ -168,7 +168,9 @@ export function toASM(chunks: Buffer | Array<number | Buffer>): string {
168
169
chunks = decompile(chunks) as Stack;
170
171
-
172
173
174
175
176
0 commit comments