Skip to content

Commit 7406fa1

Browse files
MaxGraeydcodeIO
andauthored
fix: properly check undefined exportStart option (AssemblyScript#2453)
Co-authored-by: dcode <dcode@dcode.io>
1 parent beda866 commit 7406fa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ export async function main(argv, options) {
314314
assemblyscript.setSharedMemory(compilerOptions, opts.sharedMemory);
315315
assemblyscript.setImportTable(compilerOptions, opts.importTable);
316316
assemblyscript.setExportTable(compilerOptions, opts.exportTable);
317-
if (opts.exportStart) {
317+
if (opts.exportStart != null) {
318318
assemblyscript.setExportStart(compilerOptions, isNonEmptyString(opts.exportStart) ? opts.exportStart : "_start");
319319
}
320320
assemblyscript.setMemoryBase(compilerOptions, opts.memoryBase >>> 0);

0 commit comments

Comments
 (0)