Skip to content

Commit 610b99b

Browse files
committed
Add getStart
1 parent 543617a commit 610b99b

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,9 @@ API
257257
* MemorySegmentInfo#**data**: `Uint8Array`
258258
* MemorySegmentInfo#**passive**: `boolean`
259259

260+
* Module#**getStart**(): `FunctionRef`<br />
261+
Gets the start function, if any.
262+
260263
* Module#**setStart**(start: `FunctionRef`): `void`<br />
261264
Sets the start function.
262265

index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1754,6 +1754,7 @@ declare module binaryen {
17541754
getExportByIndex(index: number): ExportRef;
17551755
setMemory(initial: number, maximum: number, exportName?: string | null, segments?: MemorySegment[] | null, shared?: boolean, memory64?: boolean, internalName?: string): void;
17561756
getMemorySegmentInfo(name: string): MemorySegmentInfo;
1757+
getStart(): FunctionRef;
17571758
setStart(start: FunctionRef): void;
17581759
getFeatures(): Features;
17591760
setFeatures(features: Features): void;

0 commit comments

Comments
 (0)