# All files / src/emitter/section start.js

100% Statements 6/6
50% Branches 1/2
100% Functions 1/1
100% Lines 6/6

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    27x
    27x

    5x

    5x
    5x

    5x

     // @flow
    import { varuint32 } from "../numbers";
    import OutputStream from "../../utils/output-stream";

    export default function emitTables(start: number[]) {
      const stream = new OutputStream();

      Eif (start.length) {
        stream.push(varuint32, start[0], "start function");
      }

      return stream;
    }