Skip to content

Commit 229764b

Browse files
dcodeIOkripken
authored andcommitted
Do not export start function (#998)
1 parent 5fafb87 commit 229764b

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

src/wasm-linker.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ void Linker::layout() {
224224
auto* func = new Function;
225225
func->name = start;
226226
out.wasm.addFunction(func);
227-
exportFunction(start, true);
228227
out.wasm.addStart(start);
229228
Builder builder(out.wasm);
230229
auto* block = builder.makeBlock();

test/dot_s/start_main0.wast

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
(export "stackAlloc" (func $stackAlloc))
66
(export "stackRestore" (func $stackRestore))
77
(export "main" (func $main))
8-
(export "_start" (func $_start))
98
(start $_start)
109
(func $main
1110
)

test/dot_s/start_main2.wast

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
(export "stackAlloc" (func $stackAlloc))
66
(export "stackRestore" (func $stackRestore))
77
(export "main" (func $main))
8-
(export "_start" (func $_start))
98
(start $_start)
109
(func $main (param $0 i32) (param $1 i32) (result i32)
1110
(return

0 commit comments

Comments
 (0)